冲突解决 合并代码

yun-zuoyi
wei.peng 7 years ago
parent 2a9ecbce3b
commit 35ecf85881

@ -273,7 +273,7 @@ public class CommonEnumUtil {
// EXPIRE(5, "服务到期", "服务到期_EXPIRE"),
LOCKING(3, "fa cell-fa fa-lock", "锁定"),
ENABLE(1, "fa fa-success cell-fa fa-check", "启用"),
DISABLE(2, "fa fa-disabled cell-fa fa-times-circle", "禁");
DISABLE(2, "fa fa-disabled cell-fa fa-times-circle", "禁");
private int value;
private String code;

@ -0,0 +1,29 @@
package cn.estsh.i3plus.pojo.model.dynamic.table;
import lombok.Data;
import java.util.Date;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2018-12-11 15:37
* @Modify:
* Table
**/
@Data
public class DynTableCell {
// 排序
private Integer cellSeq;
// 单元格名称
private String cellName;
// 单元格名称英文
private String cellNameEn;
// 单元格数据
private Object cellValue;
// 单元格数据
private Integer cellValueType;
}

@ -0,0 +1,82 @@
package cn.estsh.i3plus.pojo.model.dynamic.table;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2018-12-11 16:43
* @Modify:
*
**/
public class DynTablePackTool {
/**
* Table
* @return
*/
public static DynTableRow getTableRow(){
return new DynTableRow();
}
/**
* Table
* @return
*/
public static DynTableRow getTableRow(String rowKey){
DynTableRow row = getTableRow();
row.setKey(rowKey);
return row;
}
public static DynTableRow getDynTableRow(ImppDynTable table, String key){
if(table != null && key != null){
return table.getTable().get(key);
}
return null;
}
/**
*
* @param table
* @param row
* @return
*/
public static DynTableRow putDynTableRow(ImppDynTable table,DynTableRow row){
return table.getTable().put(row.getKey(),row);
}
/**
*
* @param seq
* @param name
* @param value
* @return
*/
public static DynTableCell getTableCell(Integer seq,String name,Object value) {
return getTableCell(seq, name, null, value,null);
}
public static DynTableCell getTableCell(Integer seq,String name,Object value,Integer valueType) {
return getTableCell(seq, name, null, value,valueType);
}
/**
*
* @param seq
* @param name
* @param nameEn En
* @param value
* @return
*/
public static DynTableCell getTableCell(Integer seq,String name,String nameEn,Object value,Integer valueType){
DynTableCell cell = new DynTableCell();
cell.setCellSeq(seq);
cell.setCellName(name);
cell.setCellNameEn(nameEn);
cell.setCellValue(value);
cell.setCellValueType(valueType);
return cell;
}
}

@ -0,0 +1,48 @@
package cn.estsh.i3plus.pojo.model.dynamic.table;
import lombok.Data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2018-12-11 15:37
* @Modify:
* Table Row
**/
@Data
public class DynTableRow {
private String key;
// 行号
private Integer index = 0;
// 行Size
private Integer cellSize = 0;
// 行数据
private List<DynTableCell> cellList = new ArrayList<>();
public DynTableRow addList(DynTableCell cell){
this.cellList.add(cell);
return this;
}
public Integer getCellSize() {
return cellList != null ? cellList.size() : 0;
}
/**
* Size
* @param cellSize
*/
private void setCellSize(Integer cellSize) { }
}

@ -0,0 +1,33 @@
package cn.estsh.i3plus.pojo.model.dynamic.table;
import lombok.Data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Description :
* @Reference :
* @Author : Adair Peng
* @CreateDate : 2018-12-11 15:37
* @Modify:
* Table Row
**/
@Data
public class ImppDynTable {
// 行数据
private Map<String,DynTableRow> table = new HashMap<>();
// 表单标题
private String tableTitle;
public ImppDynTable() {
}
public ImppDynTable(String tableTitle) {
this.tableTitle = tableTitle;
}
}

@ -77,7 +77,7 @@ public class SysOrderNoRule extends BaseBean {
public void setIsCycleName(String isCycleName) {
this.isCycleName = isCycleName;
this.isCycle = CommonEnumUtil.TRUE_OR_FALSE.descOf(isCycleName);
// this.isCycle = CommonEnumUtil.TRUE_OR_FALSE.descOf(isCycleName);
}
@Column(name = "SERIAL_NO")

@ -53,6 +53,20 @@ public class WmsActionResponseBean {
@JsonSerialize(using = ToStringSerializer.class)
public Long alId;
/**
* FalseTrue
* detailsDataList
*/
@ApiParam(value = "是否需要选择单号")
public Boolean toSelected;
/**
* toSelected 使
* keyColumn
*/
@ApiParam(value = "关键字段列名")
public String keyColumn;
public WmsActionResponseBean(Boolean codeStatus, String message) {
this.codeStatus = codeStatus;
this.message = message;

@ -1110,6 +1110,8 @@ public class WmsHqlPack {
getStringBuilderPack(wmsActionGroupDetails, result);
HqlPack.getOrderByPack(new Object[]{1}, new String[]{"seq"}, result);
return result.toString();
}
@ -1190,4 +1192,23 @@ public class WmsHqlPack {
return result.toString();
}
/**
* PO
*
* @param wmsPoSn
* @return
*/
public static String packHqlWmsPoSn(WmsPoSn wmsPoSn) {
StringBuffer result = new StringBuffer();
//查询参数封装
HqlPack.getStringLikerPack(wmsPoSn.getOrderNo(), "orderNo", result);
HqlPack.getStringLikerPack(wmsPoSn.getPartNo(), "partNo", result);
HqlPack.getStringLikerPack(wmsPoSn.getPartNameRdd(), "partNameRdd", result);
getStringBuilderPack(wmsPoSn, result);
return result.toString();
}
}

Loading…
Cancel
Save