|
|
|
@ -6,13 +6,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.model.AbnormalBill;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.AbnormalBillService;
|
|
|
|
|
import com.foreverwin.mesnac.common.helper.NextNumberHelper;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.controller.DataFieldListController;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.controller.NcCodeController;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.controller.WorkCenterController;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.DataField;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.NcCode;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.WorkCenter;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.service.DataFieldListService;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.service.NcCodeService;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
@ -41,14 +40,11 @@ public class AbnormalBillController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private WorkCenterController workCenterController;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private NextNumberHelper nextNumberHelper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private NcCodeController ncCodeController;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private DataFieldListController dataFieldListController;
|
|
|
|
|
private DataFieldListService dataFieldListService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据id查询
|
|
|
|
@ -170,6 +166,11 @@ public class AbnormalBillController {
|
|
|
|
|
return R.ok(abnormalBillService.removeByIds(ids));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 初始化
|
|
|
|
|
* @param messageType
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/init")
|
|
|
|
|
public R init(String messageType){
|
|
|
|
|
HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
|
@ -192,25 +193,19 @@ public class AbnormalBillController {
|
|
|
|
|
DataField dataField = new DataField();
|
|
|
|
|
dataField.setSite(site);
|
|
|
|
|
dataField.setDataField("RESPONSIBILITY_DEPARTMENT");
|
|
|
|
|
R dutyDepart = dataFieldListController.findDataFieldListById(dataField);
|
|
|
|
|
hashMap.put("dutyDepart",dutyDepart);
|
|
|
|
|
List<DataField> dutyDepartList = dataFieldListService.findDataFieldListById(dataField);
|
|
|
|
|
hashMap.put("dutyDepart",dutyDepartList);
|
|
|
|
|
//责任分类
|
|
|
|
|
dataField.setDataField("RESPONSIBILITY_TYPE");
|
|
|
|
|
R dutyType = dataFieldListController.findDataFieldListById(dataField);
|
|
|
|
|
hashMap.put("dutyType",dutyType);
|
|
|
|
|
List<DataField> dutyTypeList = dataFieldListService.findDataFieldListById(dataField);
|
|
|
|
|
hashMap.put("dutyType",dutyTypeList);
|
|
|
|
|
return R.ok(hashMap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/findAllUserByUserGroup")
|
|
|
|
|
public R findAllUserByUserGroup(String site, String userGroups){
|
|
|
|
|
return R.ok();
|
|
|
|
|
}
|
|
|
|
|
@GetMapping("/getNextNumber")
|
|
|
|
|
public R getNextNumber(String numberType){
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
List<String> nextNumber = nextNumberHelper.getNextNumber(site, numberType, 1, null);
|
|
|
|
|
return R.ok(nextNumber.get(0));
|
|
|
|
|
}
|
|
|
|
|
// @GetMapping("/findAllUserByUserGroup")
|
|
|
|
|
// public R findAllUserByUserGroup(String site, String userGroups){
|
|
|
|
|
// return R.ok();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 异常提报
|
|
|
|
@ -222,6 +217,12 @@ public class AbnormalBillController {
|
|
|
|
|
return R.ok(abnormalBillService.anomalyReportOther(abnormalBill, abnormalBillDispose));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 取消原因
|
|
|
|
|
* @param handle
|
|
|
|
|
* @param cancelBrowse
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/cancelBrowse")
|
|
|
|
|
public R cancelBrowse(String handle, String cancelBrowse){
|
|
|
|
|
abnormalBillService.cancelBrowse(handle,cancelBrowse);
|
|
|
|
|