|
|
|
@ -35,6 +35,7 @@ import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -270,9 +271,8 @@ public class ExtProdOrgController extends MesBaseController {
|
|
|
|
|
@ApiOperation(value = "按条件查询生产线所有数据")
|
|
|
|
|
public ResultBean queryMesWorkCenterByProperties(MesWorkCenter workCenter) {
|
|
|
|
|
try {
|
|
|
|
|
workCenter.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
|
if (StringUtils.isEmpty(workCenter.getOrganizeCode())) workCenter.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
|
List<MesWorkCenter> workCenterList = prodOrgService.queryMesWorkCenterByProperties(workCenter);
|
|
|
|
|
|
|
|
|
|
return ResultBean.success("操作成功").setResultList(workCenterList)
|
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|