add:库存管理新增编辑
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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")+"'");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user