代码更新

This commit is contained in:
2022-07-18 18:01:49 +08:00
parent d183f004d7
commit 08d51d1455
5 changed files with 70 additions and 4 deletions

View File

@@ -2,9 +2,11 @@
package org.nl.wms.basedata.em.rest;
import cn.hutool.core.map.MapUtil;
import com.alibaba.fastjson.JSONObject;
import org.nl.wms.basedata.em.service.DevicebomService;
import org.nl.wms.basedata.em.service.dto.DevicebomDto;
import org.nl.wms.basedata.master.constant.MaterOptTypeEnum;
import org.springframework.data.domain.Pageable;
import lombok.RequiredArgsConstructor;
import org.nl.annotation.Log;
@@ -83,4 +85,12 @@ public class DevicebomController {
public ResponseEntity<Object> getDtl(@RequestBody JSONObject json) {
return new ResponseEntity<>(devicebomService.getDtl(json),HttpStatus.OK);
}
@Log("查询物料操作类型")
@ApiOperation("查询物料操作类型")
@PostMapping("/getBjId")
public ResponseEntity<Object> getMaterOptType(@RequestBody Map map) {
String materOpt_code = MapUtil.getStr(map, "materOpt_code");
return new ResponseEntity<>(MaterOptTypeEnum.getObj(materOpt_code), HttpStatus.OK);
}
}

View File

@@ -32,7 +32,8 @@ public enum MaterOptTypeEnum {
YL_AND_BCP(21, "22", "原料和半成品", "('1503644353019645952','1503644359155912704')", ""),
SPARE(22, "23", "备品备件", "('1503644361789935616')", ""),
SBGZ(23, "24", "设备故障", "('1541964046385942528')", ""),
TJJ_AND_OTHER(24, "22", "添加剂和其他有色金属粉", "('1503644361697660928','1503644362838511616')", "");
TJJ_AND_OTHER(24, "25", "添加剂和其他有色金属粉", "('1503644361697660928','1503644362838511616')", ""),
BJID(25, "26", "备品备件", "1503644361789935616", "");