|
|
@@ -316,6 +316,86 @@ public class RMScontroller extends BaseRESTfulController {
|
|
|
return rmsFeign.getMaterialYieldList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取物资产量列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
+ @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
|
|
|
+ })
|
|
|
+ @PostMapping("/getRmsBaseProductionCostList")
|
|
|
+ public Map<String, Object> getRmsBaseProductionCostList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize
|
|
|
+ ) {
|
|
|
+ return rmsFeign.getRmsBaseProductionCostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/insertRmsBaseProductionCost")
|
|
|
+ public Map<String, Object> insertRmsBaseProductionCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.insertRmsBaseProductionCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/updateRmsBaseProductionCost")
|
|
|
+ public Map<String, Object> updateRmsBaseProductionCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.updateRmsBaseProductionCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/deleteRmsBaseProductionCost")
|
|
|
+ public Map<String, Object> deleteRmsBaseProductionCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.deleteRmsBaseProductionCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getRmsBasePurchaseCostList")
|
|
|
+ public Map<String, Object> getRmsBasePurchaseCostList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize
|
|
|
+ ) {
|
|
|
+ return rmsFeign.getRmsBasePurchaseCostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/insertRmsBasePurchaseCost")
|
|
|
+ public Map<String, Object> insertRmsBasePurchaseCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.insertRmsBasePurchaseCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/updateRmsBasePurchaseCost")
|
|
|
+ public Map<String, Object> updateRmsBasePurchaseCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.updateRmsBasePurchaseCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/deleteRmsBasePurchaseCost")
|
|
|
+ public Map<String, Object> deleteRmsBasePurchaseCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.deleteRmsBasePurchaseCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getRmsBaseSaleCostList")
|
|
|
+ public Map<String, Object> getRmsBaseSaleCostList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize
|
|
|
+ ) {
|
|
|
+ return rmsFeign.getRmsBaseSaleCostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/insertRmsBaseSaleCost")
|
|
|
+ public Map<String, Object> insertRmsBaseSaleCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.insertRmsBaseSaleCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/updateRmsBaseSaleCost")
|
|
|
+ public Map<String, Object> updateRmsBaseSaleCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.updateRmsBaseSaleCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/deleteRmsBaseSaleCost")
|
|
|
+ public Map<String, Object> deleteRmsBaseSaleCost(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
+ return rmsFeign.deleteRmsBaseSaleCost(mapValue);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/insertMaterialYield")
|
|
|
public Map<String, Object> insertMaterialYield(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
return rmsFeign.insertMaterialYield(mapValue);
|
|
|
@@ -546,6 +626,37 @@ public class RMScontroller extends BaseRESTfulController {
|
|
|
return rmsFeign.importPersonnel(map);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("导入人员信息")
|
|
|
+ @PostMapping("/importPersonnelSyncSSO")
|
|
|
+ public RESTfulResult importPersonnelSyncSSO(@RequestBody MultipartFile file,
|
|
|
+ String userId,
|
|
|
+ String userName) throws Exception {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ //获取Excel中包含的对象数组
|
|
|
+ List<Map<String, Object>> list = ExcelToolUtils.getExcelList(file, 0);
|
|
|
+ map.put("list", list);
|
|
|
+ for (Map<String, Object> item : list) {
|
|
|
+ //校验行
|
|
|
+ if(
|
|
|
+ item.get("姓名")==null || item.get("姓名").equals("")
|
|
|
+ || item.get("身份证号")==null || item.get("身份证号").equals("")
|
|
|
+ || item.get("手机")==null || item.get("手机").equals("")
|
|
|
+ || item.get("单位")==null || item.get("单位").equals("")
|
|
|
+ || item.get("岗位名称")==null || item.get("岗位名称").equals("")
|
|
|
+ ){
|
|
|
+ throw new Exception("单元格数据异常,请检查模板或数据是否正确!");
|
|
|
+ }
|
|
|
+ item.put("companyId",item.get("单位"));
|
|
|
+ item.put("personnelPost",item.get("岗位名称"));
|
|
|
+ item.put("personnelName",item.get("姓名"));
|
|
|
+ item.put("personnelPhone",item.get("手机"));
|
|
|
+ item.put("identityCard",item.get("身份证号"));
|
|
|
+ }
|
|
|
+ map.put("userId",userId);
|
|
|
+ map.put("userName",userName);
|
|
|
+ return rmsFeign.importPersonnelSyncSSO(map);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
//================公司
|
|
|
@ApiOperation(value = "展示公司信息")
|