| | |
| | | import org.springblade.common.constant.CommonConstant; |
| | | import org.springblade.common.constant.DictConstant; |
| | | import org.springblade.common.param.CommonParamSet; |
| | | import org.springblade.common.utils.AuthUtils; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | |
| | | item.setCreateUser(AuthUtil.getUserId()); |
| | | }); |
| | | List<TaskPlaceRecordEntity> collect = taskPlaceRecordList.stream().filter(item -> item.getState().equals(0)).collect(Collectors.toList()); |
| | | boolean b = bean.saveBatch(collect); |
| | | updateById(taskPlaceSelfCheck); |
| | | if (b) { |
| | | return b; |
| | | if (collect.size() > 0) { |
| | | bean.saveBatch(collect); |
| | | } |
| | | throw new Exception("保存失败!"); |
| | | updateById(taskPlaceSelfCheck); |
| | | return save; |
| | | } |
| | | return false; |
| | | } |
| | |
| | | |
| | | /** |
| | | * 导出消防自查信息 |
| | | * |
| | | * @param taskPlaceSelfCheck |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | return taskPlaceSelfCheckExcels; |
| | | } |
| | | |
| | | @Override |
| | | public Integer getCount(String neiCode, int i) { |
| | | // 获取请求头中的角色别名 |
| | | String roleName = SpringUtils.getRequestParam("roleName"); |
| | | if (AuthUtils.isMj(roleName)) { |
| | | return baseMapper.getCount(neiCode, i, AuthUtil.getUserId()); |
| | | } |
| | | return 0; |
| | | } |
| | | } |