| | |
| | | |
| | | JSONObject paramJson = new JSONObject(); |
| | | paramJson.put("time", DateUtil.format(new Date(),"yyyy-MM-dd")); |
| | | paramJson.put("editPar", "top_dam_top_elevation"); |
| | | paramJson.put("editPar", "top_dam_top_elevation:修改值为" + attResWaterBlock.getTbDamTopElevation()); |
| | | paramJson.put("ly", "ywxt"); |
| | | paramJson.put("user_id", AuthUtil.getUserId()); |
| | | paramJson.put("user_name", AuthUtil.getUserName()); |
| | | paramJson.put("phone", userClient.userInfoById(AuthUtil.getUserId()).getData().getPhone()); |
| | | attResWaterBlock.setUpdateBy(paramJson.toJSONString()); |
| | | |
| | | return SqlHelper.retBool(baseMapper.updateAttResWaterBlockByResId(attResWaterBlock)); |
| | | Integer ret = baseMapper.updateAttResWaterBlockByResId(attResWaterBlock); |
| | | if (ret == 0) { |
| | | ret = baseMapper.addAttResWaterBlockByResId(attResWaterBlock); |
| | | } |
| | | return SqlHelper.retBool(ret); |
| | | } |
| | | |
| | | } |