|
|
|
@ -22,13 +22,8 @@ public class RiskMaterialServiceImpl implements RiskMaterialService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateRiskMaterial(String riskId, String description) {
|
|
|
|
|
System.out.println("--------------------------------------------------------");
|
|
|
|
|
System.out.println("description: " + description);
|
|
|
|
|
List<JSONObject> materialList = riskMaterialMapper.findAllMaterials(riskId);
|
|
|
|
|
System.out.println("--------------------------------------------------------");
|
|
|
|
|
System.out.println("materialList.size: ");
|
|
|
|
|
if (!materialList.isEmpty()) {
|
|
|
|
|
System.out.println(materialList.size());
|
|
|
|
|
if (!materialList.isEmpty()){
|
|
|
|
|
JSONObject material = materialList.get(0);
|
|
|
|
|
material.put("refuse_description", description);
|
|
|
|
|
riskMaterialMapper.update(material);
|
|
|
|
|