| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | |
| | | paramJson.put("phone", userClient.userInfoById(AuthUtil.getUserId()).getData().getPhone()); |
| | | attResDangerManageSpecial.setUpdateBy(paramJson.toJSONString()); |
| | | |
| | | return baseMapper.updateAttResDangerManageSpecialByResId(attResDangerManageSpecial) > 0; |
| | | Integer ret = baseMapper.updateAttResDangerManageSpecialByResId(attResDangerManageSpecial); |
| | | if (ret == 0) { |
| | | ret = baseMapper.addAttResDangerManageSpecialByResId(attResDangerManageSpecial); |
| | | } |
| | | return SqlHelper.retBool(ret); |
| | | } |
| | | } |