Просмотр исходного кода

打印模板isEnable

pull/22/head
闫阳 1 год назад
Родитель
Сommit
5f5a60eb29
15 измененных файлов: 39 добавлений и 17 удалений
  1. +1
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/controller/PrintModelController.java
  2. +4
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/dto/PrintModelDTO.java
  3. +6
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/entity/PrintModel.java
  4. +3
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/excel/PrintModelExcel.java
  5. +1
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.java
  6. +1
    -0
      ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.xml
  7. +6
    -6
      ym-generator/src/main/java/com/cnbm/generator/code/mysql/PrintModelmysql.sql
  8. +1
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/service/PrintModelServiceBiz.java
  9. +1
    -1
      ym-generator/src/main/java/com/cnbm/generator/code/service/impl/PrintModelServiceBizImpl.java
  10. +1
    -1
      ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java
  11. +3
    -0
      ym-packing/src/main/java/com/cnbm/packing/dto/PrintModelDTO.java
  12. +5
    -0
      ym-packing/src/main/java/com/cnbm/packing/entity/PrintModel.java
  13. +2
    -0
      ym-packing/src/main/java/com/cnbm/packing/excel/PrintModelExcel.java
  14. +3
    -3
      ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java
  15. +1
    -0
      ym-packing/src/main/resources/mapper/PrintModleMapper.xml

+ 1
- 1
ym-generator/src/main/java/com/cnbm/generator/code/controller/PrintModelController.java Просмотреть файл

@@ -31,7 +31,7 @@ import java.util.Map;
* 打印标签模板表 前端控制器
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
@RestController
@RequestMapping("/code/printModel")


+ 4
- 1
ym-generator/src/main/java/com/cnbm/generator/code/dto/PrintModelDTO.java Просмотреть файл

@@ -14,7 +14,7 @@ import java.math.BigDecimal;
* 打印标签模板表
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
@Data
@ApiModel(value = "打印标签模板表DTO对象")
@@ -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;

}

+ 6
- 1
ym-generator/src/main/java/com/cnbm/generator/code/entity/PrintModel.java Просмотреть файл

@@ -14,7 +14,7 @@ import lombok.Data;
* </p>
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
@Data
@TableName("t_print_model")
@@ -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";

}

+ 3
- 1
ym-generator/src/main/java/com/cnbm/generator/code/excel/PrintModelExcel.java Просмотреть файл

@@ -12,7 +12,7 @@ import java.util.Date;
* 打印标签模板表
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
@Data
public class PrintModelExcel {
@@ -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;

}

+ 1
- 1
ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.java Просмотреть файл

@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Mapper;
* 打印标签模板表
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
@Mapper
public interface PrintModelMapper extends BaseDao<PrintModel> {


+ 1
- 0
ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.xml Просмотреть файл

@@ -20,6 +20,7 @@
<id column="IS_PREVIEW" property="isPreview" />
<id column="CONTENT" property="content" />
<id column="line_body" property="lineBody" />
<id column="is_enable" property="isEnable" />
</resultMap>

</mapper>

+ 6
- 6
ym-generator/src/main/java/com/cnbm/generator/code/mysql/PrintModelmysql.sql Просмотреть файл

@@ -1,7 +1,7 @@
-- 菜单初始SQL
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627506543435272194, 1067246875800000035, '打印标签模板表', 'packing/printModel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272195, 1627506543435272194, '查看', NULL, 'packing:printModel:page,packing:printModel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272196, 1627506543435272194, '新增', NULL, 'packing:printModel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272197, 1627506543435272194, '修改', NULL, 'packing:printModel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272198, 1627506543435272194, '删除', NULL, 'packing:printModel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272199, 1627506543435272194, '导出', NULL, 'packing:printModel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1633305189284167681, 1067246875800000035, '打印标签模板表', 'code/printModel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1633305189284167682, 1633305189284167681, '查看', NULL, 'code:printModel:page,code:printModel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1633305189284167683, 1633305189284167681, '新增', NULL, 'code:printModel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1633305189284167684, 1633305189284167681, '修改', NULL, 'code:printModel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1633305189284167685, 1633305189284167681, '删除', NULL, 'code:printModel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1633305189284167686, 1633305189284167681, '导出', NULL, 'code:printModel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());

+ 1
- 1
ym-generator/src/main/java/com/cnbm/generator/code/service/PrintModelServiceBiz.java Просмотреть файл

@@ -8,7 +8,7 @@ import com.cnbm.generator.code.entity.PrintModel;
* 打印标签模板表
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
public interface PrintModelServiceBiz extends CrudService<PrintModel, PrintModelDTO> {


+ 1
- 1
ym-generator/src/main/java/com/cnbm/generator/code/service/impl/PrintModelServiceBizImpl.java Просмотреть файл

@@ -15,7 +15,7 @@ import java.util.Map;
* 打印标签模板表
*
* @author codeGenerator
* @since 2023-02-20
* @since 2023-03-08
*/
@Service
public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper, PrintModel, PrintModelDTO> implements PrintModelServiceBiz {


+ 1
- 1
ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java Просмотреть файл

@@ -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){


+ 3
- 0
ym-packing/src/main/java/com/cnbm/packing/dto/PrintModelDTO.java Просмотреть файл

@@ -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;

}

+ 5
- 0
ym-packing/src/main/java/com/cnbm/packing/entity/PrintModel.java Просмотреть файл

@@ -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";

}

+ 2
- 0
ym-packing/src/main/java/com/cnbm/packing/excel/PrintModelExcel.java Просмотреть файл

@@ -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;

}

+ 3
- 3
ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java Просмотреть файл

@@ -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;


+ 1
- 0
ym-packing/src/main/resources/mapper/PrintModleMapper.xml Просмотреть файл

@@ -21,6 +21,7 @@
<id column="IS_PREVIEW" property="isPreview" />
<id column="CONTENT" property="content" />
<id column="line_body" property="lineBody" />
<id column="is_enable" property="isEnable" />
</resultMap>

<select id="list" resultType="com.cnbm.packing.dto.PrintModelDTO">


Загрузка…
Отмена
Сохранить