Browse Source

工装管理

laoyao 3 years ago
parent
commit
8c517666f5

+ 2 - 0
imcs-admin-boot/imcs-business-controller/src/main/java/com/github/zuihou/business/controller/productionReadyCenter/MToolClampController.java

@@ -53,6 +53,8 @@ public class MToolClampController extends SuperController<MToolClampService, Lon
 
 
         MToolClamp module = BeanUtil.toBean(data, MToolClamp.class);
         MToolClamp module = BeanUtil.toBean(data, MToolClamp.class);
         wrapper.like(MToolClamp::getName, module.getName())
         wrapper.like(MToolClamp::getName, module.getName())
+                .eq(MToolClamp::getNo, module.getNo() )
+                .eq(MToolClamp::getMaterialType, module.getMaterialType() )
                 .eq(MToolClamp::getStatus, module.getStatus())
                 .eq(MToolClamp::getStatus, module.getStatus())
                 .eq(MToolClamp::getBrand, module.getBrand())
                 .eq(MToolClamp::getBrand, module.getBrand())
                 .eq(MToolClamp::getCategory, module.getCategory() )
                 .eq(MToolClamp::getCategory, module.getCategory() )

+ 1 - 1
imcs-admin-boot/imcs-business-entity/src/main/java/com/github/zuihou/business/productionReadyCenter/dto/MToolClampPageDTO.java

@@ -91,7 +91,7 @@ public class MToolClampPageDTO implements Serializable {
      * 物料类型
      * 物料类型
      */
      */
     @ApiModelProperty(value = "物料类型")
     @ApiModelProperty(value = "物料类型")
-    private RemoteData<String, String> materialType;
+    private String materialType;
 
 
     @ApiModelProperty(value = "同步状态 0:未同步 1:已同步")
     @ApiModelProperty(value = "同步状态 0:未同步 1:已同步")
     private Integer synFlag;
     private Integer synFlag;

+ 3 - 3
imcs-admin-boot/imcs-business-entity/src/main/java/com/github/zuihou/business/productionReadyCenter/entity/MToolClamp.java

@@ -127,11 +127,11 @@ public class MToolClamp extends Entity<Long> {
      * 物料类型
      * 物料类型
      */
      */
     @ApiModelProperty(value = "物料类型")
     @ApiModelProperty(value = "物料类型")
-    @Length(max = 4, message = "物料类型长度不能超过4")
+    @Length(max = 128, message = "物料类型长度不能超过128")
     @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.MATERIAL_TYPE)
     @InjectionField(api = DICTIONARY_ITEM_CLASS, method = DICTIONARY_ITEM_METHOD, dictType = DictionaryType.MATERIAL_TYPE)
     @TableField(value = "material_type", condition = LIKE)
     @TableField(value = "material_type", condition = LIKE)
     @Excel(name = "物料类型")
     @Excel(name = "物料类型")
-    private RemoteData<String, String> materialType;
+    private String materialType;
 
 
     /**
     /**
      * 同步状态 0:未同步 1:已同步
      * 同步状态 0:未同步 1:已同步
@@ -145,7 +145,7 @@ public class MToolClamp extends Entity<Long> {
     @Builder
     @Builder
     public MToolClamp(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
     public MToolClamp(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
                       String no, String name, String status, String model, RemoteData<String, String> category, String mapNo, int period,int expiryDate,
                       String no, String name, String status, String model, RemoteData<String, String> category, String mapNo, int period,int expiryDate,
-                      int num, String joinDate, RemoteData<String, String> brand, RemoteData<String, String> materialType,int synFlag) {
+                      int num, String joinDate, RemoteData<String, String> brand, String materialType,int synFlag) {
         this.id = id;
         this.id = id;
         this.createTime = createTime;
         this.createTime = createTime;
         this.createUser = createUser;
         this.createUser = createUser;