| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | |
| | | * |
| | | * @param ardDispatchPolice 派警管理对象 |
| | | */ |
| | | /** |
| | | * 新增派警关联用户信息 |
| | | * |
| | | * @param ardDispatchPolice 派警管理对象 |
| | | */ |
| | | public void insertArdDispatchPoliceUser(ArdDispatchPolice ardDispatchPolice) { |
| | | List<String> ardDispatchPoliceUserList = ardDispatchPolice.getArdDispatchPoliceUserList(); |
| | | List<SysUser> sysUserList = ardDispatchPolice.getSysUserList(); |
| | | String id = ardDispatchPolice.getId(); |
| | | if (StringUtils.isNotNull(ardDispatchPoliceUserList)) { |
| | | if (StringUtils.isNotNull(sysUserList)) { |
| | | List<ArdDispatchPoliceUser> list = new ArrayList<ArdDispatchPoliceUser>(); |
| | | for (String userId : ardDispatchPoliceUserList) { |
| | | for (SysUser user :sysUserList) |
| | | { |
| | | ArdDispatchPoliceUser ardDispatchPoliceUser=new ArdDispatchPoliceUser(); |
| | | ardDispatchPoliceUser.setUserId(userId); |
| | | ardDispatchPoliceUser.setDispatchId(id); |
| | | ardDispatchPoliceUser.setUserId(user.getUserId()); |
| | | list.add(ardDispatchPoliceUser); |
| | | } |
| | | if (list.size() > 0) { |