Commit aa23b382 authored by liuxun's avatar liuxun

Merge remote-tracking branch 'origin/master'

parents 9798994a 5da35f14
...@@ -21,7 +21,7 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang ...@@ -21,7 +21,7 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang
@Param("districtArea") String districtArea, @Param("districtArea") String districtArea,
@Param("realName") String realName, @Param("realName") String realName,
@Param("certiCode") String certiCode, @Param("certiCode") String certiCode,
@Param("aplOrganName") String aplOrganName, @Param("aplOrganName") String srvOrganName,
@Param("applyStatus") Short applyStatus); @Param("applyStatus") Short applyStatus);
/** /**
* 失能信息变更-查看修改 * 失能信息变更-查看修改
......
...@@ -59,9 +59,9 @@ public class TaskController { ...@@ -59,9 +59,9 @@ public class TaskController {
public Result<Page<TaskDistributionVO>> taskDistributionList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize, public Result<Page<TaskDistributionVO>> taskDistributionList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize,
String organId, String provincial, String city, String organId, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area) { String daysRemaining, String taskStatus, String isReturn, String area) {
Page<TaskDistributionVO> page = new Page<>(pageNum, pageSize); Page<TaskDistributionVO> page = new Page<>(pageNum, pageSize);
page = taskService.taskDistributionList(page, organId, provincial, city, street, realName, certiCode, taskName, taskTel, daysRemaining, status, isReturn, area); page = taskService.taskDistributionList(page, organId, provincial, city, street, realName, certiCode, taskName, taskTel, daysRemaining, taskStatus, isReturn, area);
return Result.success(page); return Result.success(page);
} }
......
...@@ -37,7 +37,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> { ...@@ -37,7 +37,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
*/ */
Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, List<String> organIds, String provincial, String city, Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, List<String> organIds, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area); String daysRemaining, String taskStatus, String isReturn, String area);
/** /**
* 评定报告录入列表 * 评定报告录入列表
......
...@@ -25,7 +25,7 @@ public interface TaskService { ...@@ -25,7 +25,7 @@ public interface TaskService {
Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city, Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area); String daysRemaining, String taskStatus, String isReturn, String area);
List<TaskReportVO> taskReportList(String name, String certiCode, String tel); List<TaskReportVO> taskReportList(String name, String certiCode, String tel);
......
...@@ -67,13 +67,13 @@ public class TaskServiceImpl implements TaskService { ...@@ -67,13 +67,13 @@ public class TaskServiceImpl implements TaskService {
@Override @Override
public Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city, public Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area) { String daysRemaining, String taskStatus, String isReturn, String area) {
List<String> organIds = null; List<String> organIds = null;
if (StrUtil.isNotBlank(organId)) { if (StrUtil.isNotBlank(organId)) {
organIds = Arrays.asList(organId.split(",")); organIds = Arrays.asList(organId.split(","));
} }
return taskMapper.taskDistributionList(page, organIds, provincial, city, return taskMapper.taskDistributionList(page, organIds, provincial, city,
street, realName, certiCode, taskName, taskTel, daysRemaining, status, isReturn, area); street, realName, certiCode, taskName, taskTel, daysRemaining, taskStatus, isReturn, area);
} }
/** /**
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<select id="taskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO"> <select id="taskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO">
select select
task.task_id taskId, DISTINCT task.task_id taskId,
task.apply_id applyId, task.apply_id applyId,
fndOrgan.ORGAN_NAME organName, fndOrgan.ORGAN_NAME organName,
task.ORGAN_ID aprOrganId, task.ORGAN_ID aprOrganId,
...@@ -44,9 +44,7 @@ ...@@ -44,9 +44,7 @@
task.assign_time assignTime, task.assign_time assignTime,
task.accept_time acceptTime, task.accept_time acceptTime,
task.finish_time finishTime, task.finish_time finishTime,
task.task_status taskStatus, task.task_status taskStatus
reason.refuse_reason refuseReason,
push.refuse_remark refuseRemark
from CH_APR_TASK task from CH_APR_TASK task
left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id
-- left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id -- left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id
...@@ -60,7 +58,7 @@ ...@@ -60,7 +58,7 @@
<where> <where>
and task.APR_TYPE = 0 and task.APR_TYPE = 0
<if test="organIds != null"> <if test="organIds != null">
and task.apr_organ_id in and task.ORGAN_ID in
<foreach collection="organIds" item="organId" open="(" close=")" separator=","> <foreach collection="organIds" item="organId" open="(" close=")" separator=",">
#{organId} #{organId}
</foreach> </foreach>
...@@ -92,14 +90,14 @@ ...@@ -92,14 +90,14 @@
<if test="daysRemaining != null and daysRemaining != ''"> <if test="daysRemaining != null and daysRemaining != ''">
and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1 &lt;= #{daysRemaining} and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1 &lt;= #{daysRemaining}
</if> </if>
<if test="status != null and status != ''"> <if test="taskStatus != null and taskStatus != ''">
and task.TASK_STATUS = #{status} and task.TASK_STATUS = #{taskStatus}
</if> </if>
<if test="isReturn != null and isReturn == '0'"> <if test="isReturn != null and isReturn !='' and isReturn == 0">
and cate.is_valid = 1 and task.task_status in (0,4,5) and cate.is_valid = 1 and task.task_status in (0,4,5)
</if> </if>
<if test="isReturn != null and isReturn == '1'"> <if test="isReturn != null and isReturn !='' and isReturn == 1">
(and cate.is_valid = 0 or cate.is_valid is null) and cate.is_valid = 0 or cate.is_valid is null
</if> </if>
</where> </where>
</select> </select>
......
package com.hungraim.ltc.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
...@@ -16,12 +17,11 @@ import java.util.Date; ...@@ -16,12 +17,11 @@ import java.util.Date;
@TableName("LTC_ROLE") @TableName("LTC_ROLE")
public class SystemRole { public class SystemRole {
@TableId @TableId( type = IdType.AUTO)
private Long roleId; private Long roleId;
private String roleName; private String roleName;
private String status; private String status;
private Date createdTime; private Date createdTime;
private Date updatedTime; private Date updatedTime;
} }
package com.hungraim.ltc.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
...@@ -16,7 +17,7 @@ import java.util.Date; ...@@ -16,7 +17,7 @@ import java.util.Date;
@TableName("LTC_USER") @TableName("LTC_USER")
public class SystemUser { public class SystemUser {
@TableId @TableId( type = IdType.AUTO)
private Long userId; private Long userId;
private String account; private String account;
private String password; private String password;
......
...@@ -45,6 +45,7 @@ public class DisableInfoVo extends PageInfo { ...@@ -45,6 +45,7 @@ public class DisableInfoVo extends PageInfo {
private Integer starts; private Integer starts;
private String acptAddress; private String acptAddress;
private Integer srvSendId;
} }
...@@ -13,6 +13,7 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> { ...@@ -13,6 +13,7 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
@Select("select s.real_name," + @Select("select s.real_name," +
"i.SRV_SEND_ID," +
" s.acpt_provincial," + " s.acpt_provincial," +
" s.acpt_city," + " s.acpt_city," +
" s.acpt_area," + " s.acpt_area," +
...@@ -35,5 +36,5 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> { ...@@ -35,5 +36,5 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
" left join ch_srv_organ j" + " left join ch_srv_organ j" +
" on i.SRV_ORGAN_ID = j.SRV_ORGAN_ID" + " on i.SRV_ORGAN_ID = j.SRV_ORGAN_ID" +
" where i.disab_info_id=#{disableInfoId}") " where i.disab_info_id=#{disableInfoId}")
Page<DisableInfoVo> querySrvYet(Page page,Integer disableInfoId); Page<DisableInfoVo> querySrvYet(Page page, Integer disableInfoId);
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
FROM CH_SRV_BUILD_BED a, CH_DISABLE_INFO b where a.DISAB_INFO_ID = b.DISAB_INFO_ID FROM CH_SRV_BUILD_BED a, CH_DISABLE_INFO b where a.DISAB_INFO_ID = b.DISAB_INFO_ID
AND a.SRV_ORGAN_ID =#{req.srvOrganId} AND a.SRV_ORGAN_ID =#{req.srvOrganId}
<if test="req.realName != null and req.realName != ''"> <if test="req.realName != null and req.realName != ''">
AND upper(a.REAL_NAME) LIKE '%' || upper#{req.realName}) || '%' AND upper(a.REAL_NAME) LIKE '%' || upper(#{req.realName}) || '%'
</if> </if>
<if test="req.certiCode != null and req.certiCode != ''"> <if test="req.certiCode != null and req.certiCode != ''">
AND upper(a.CERTI_CODE) = upper(#{req.certiCode}) AND upper(a.CERTI_CODE) = upper(#{req.certiCode})
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID
<where> <where>
t.TASK_STATUS = 3 t.TASK_STATUS = 3
<if test="chSrvOrgan.srvOrganId != null and chSrvOrgan.srvOrganId != ''"> <if test="chSrvOrgan.organId != null and chSrvOrgan.organId != ''">
AND o.organ_id = #{chSrvOrgan.srvOrganId} AND o.organ_id = #{chSrvOrgan.organId}
</if> </if>
<if test="disableInfo.realName != null and disableInfo.realName != ''"> <if test="disableInfo.realName != null and disableInfo.realName != ''">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
AND s.srv_mode_id = #{chSrvSend.srvModeId} AND s.srv_mode_id = #{chSrvSend.srvModeId}
</if> </if>
<if test="chSrvSend.status != null and chSrvSend.status != ''"> <if test="chSrvSend.status != null ">
AND (s.status is not null and s.status = #{chSrvSend.status}) AND (s.status is not null and s.status = #{chSrvSend.status})
</if> </if>
</where> </where>
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
and detail.SRV_DATE &lt;= #{endTime} and detail.SRV_DATE &lt;= #{endTime}
</if> </if>
<if test="status != null and status != ''"> <if test="status != null and status != ''">
and task.status = #{status} and detail.status = #{status}
</if> </if>
<if test="modeId != null and modeId != ''"> <if test="modeId != null and modeId != ''">
and mode1.srv_mode_name = #{modeId} and mode1.srv_mode_name = #{modeId}
......
...@@ -56,5 +56,7 @@ ...@@ -56,5 +56,7 @@
and emp.IS_LOCK = #{status} and emp.IS_LOCK = #{status}
</if> </if>
</where> </where>
ORDER BY emp.EFF_TIME desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -66,12 +66,13 @@ public class RoleController { ...@@ -66,12 +66,13 @@ public class RoleController {
systemRole.setStatus(reqRoleInfo.getStatus()); systemRole.setStatus(reqRoleInfo.getStatus());
systemRole.setCreatedTime(new Date()); systemRole.setCreatedTime(new Date());
roleService.save(systemRole); roleService.save(systemRole);
Long roleId = systemRole.getRoleId();
if(reqRoleInfo.getResource() == null){ if(reqRoleInfo.getResource() == null){
reqRoleInfo.setResource(new ArrayList<>()); reqRoleInfo.setResource(new ArrayList<>());
} }
List<SystemRoleResource> roleResources = reqRoleInfo.getResource().stream().map(resourceId -> { List<SystemRoleResource> roleResources = reqRoleInfo.getResource().stream().map(resourceId -> {
SystemRoleResource systemRoleResource = new SystemRoleResource(); SystemRoleResource systemRoleResource = new SystemRoleResource();
systemRoleResource.setRoleId(systemRole.getRoleId()); systemRoleResource.setRoleId(roleId);
systemRoleResource.setResourceId(resourceId); systemRoleResource.setResourceId(resourceId);
return systemRoleResource; return systemRoleResource;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
......
...@@ -109,12 +109,13 @@ public class UserController { ...@@ -109,12 +109,13 @@ public class UserController {
user.setUserStatus(reqUserInfo.getEnable()); user.setUserStatus(reqUserInfo.getEnable());
user.setCreatedTime(new Date()); user.setCreatedTime(new Date());
userInfoService.save(user); userInfoService.save(user);
Long userId = user.getUserId();
//初始化权限 //初始化权限
List<Long> roles = reqUserInfo.getRoleIds(); List<Long> roles = reqUserInfo.getRoleIds();
roles.add(1L); roles.add(1L);
List<SystemUserRole> roleList = roles.stream().map(roleId -> { List<SystemUserRole> roleList = roles.stream().map(roleId -> {
SystemUserRole systemUserRole = new SystemUserRole(); SystemUserRole systemUserRole = new SystemUserRole();
systemUserRole.setUserId(user.getUserId()); systemUserRole.setUserId(userId);
systemUserRole.setRoleId(roleId); systemUserRole.setRoleId(roleId);
return systemUserRole; return systemUserRole;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment