add:库存管理新增编辑

This commit is contained in:
2023-11-30 13:44:45 +08:00
parent f35cd4e614
commit 0b2f5e9610
6 changed files with 44 additions and 1 deletions

View File

@@ -99,4 +99,12 @@ public class StructivtController {
structivtService.download(map, response, product_area,ivt_flag);
}
@PostMapping("/save")
@Log("保存")
@ApiOperation("保存")
public ResponseEntity<Object> save(@RequestBody JSONObject whereJson){
structivtService.save(whereJson);
return new ResponseEntity<>(HttpStatus.OK);
}
}

View File

@@ -73,4 +73,6 @@ public interface StructivtService {
JSONArray getUnits();
void download(Map map, HttpServletResponse response,String[] product_area,String[] ivt_flag) throws IOException;
void save(JSONObject whereJson);
}

View File

@@ -304,4 +304,13 @@ public class StructivtServiceImpl implements StructivtService {
FileUtil.downloadExcel(list, response);
}
@Override
@Transactional
public void save(JSONObject whereJson) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("remark", whereJson.getString("remark"));
WQLObject.getWQLObject("st_ivt_structivt").update(jsonObject,"stockrecord_id = '"+whereJson.getString("stockrecord_id")+"'");
}
}