打印模板isEnable
This commit is contained in:
@@ -50,7 +50,7 @@ public class PrintModelController {
|
||||
@ApiImplicitParam(name = "name", value = "标签名称", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "type", value = "类型,0:模组标签,1:等级标签", paramType = "query", dataTypeClass = Integer.class),
|
||||
@ApiImplicitParam(name = "lineBody", value = "线体,1=F ; 2=S", paramType = "query", dataTypeClass = Integer.class),
|
||||
@ApiImplicitParam(name = "enabled", value = "启用状态:0 、停用,1、启用", paramType = "query", dataTypeClass = Integer.class)
|
||||
@ApiImplicitParam(name = "isEnable", value = "启用状态:0 、停用,1、启用", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
@PreAuthorize("@ex.hasAuthority('packing:printModel:page')")
|
||||
public Result<PageData<PrintModelDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
|
||||
@@ -77,4 +77,7 @@ public class PrintModelDTO implements Serializable {
|
||||
@ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)")
|
||||
private Integer lineBody;
|
||||
|
||||
@ApiModelProperty(value = "是否启用,0 停用;1 启用")
|
||||
private Integer isEnable;
|
||||
|
||||
}
|
||||
@@ -78,6 +78,9 @@ public class PrintModel implements Serializable {
|
||||
@ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)")
|
||||
private Integer lineBody;
|
||||
|
||||
@ApiModelProperty("是否启用,0 停用;1 启用")
|
||||
private Integer isEnable;
|
||||
|
||||
|
||||
public static final String ID = "ID";
|
||||
|
||||
@@ -115,4 +118,6 @@ public class PrintModel implements Serializable {
|
||||
|
||||
public static final String LINE_BODY = "line_body";
|
||||
|
||||
public static final String IS_ENABLE = "is_enable";
|
||||
|
||||
}
|
||||
|
||||
@@ -52,5 +52,7 @@ public class PrintModelExcel {
|
||||
private String content;
|
||||
@Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)")
|
||||
private Integer lineBody;
|
||||
@Excel(name = "是否启用,0 停用;1 启用")
|
||||
private Integer isEnable;
|
||||
|
||||
}
|
||||
@@ -47,9 +47,9 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
|
||||
Integer lineBody = Integer.parseInt(params.get("lineBody").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(lineBody), PrintModel.LINE_BODY, lineBody);
|
||||
}
|
||||
if(params.get("enabled")!=null) {
|
||||
Integer enabled = Integer.parseInt(params.get("enabled").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(enabled), PrintModel.ENABLED, enabled);
|
||||
if(params.get("isEnable")!=null) {
|
||||
Integer isEnable = Integer.parseInt(params.get("isEnable").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(isEnable), PrintModel.IS_ENABLE, isEnable);
|
||||
}
|
||||
|
||||
return wrapper;
|
||||
|
||||
Reference in New Issue
Block a user