刘小明
2024-09-05 6d9782f697908a9573a0ad7c33ceb3a9d31c2a9b
代码优化
6个文件已修改
16 ■■■■■ 已修改文件
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrScheduleMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/resources/mapper/PrScheduleMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/QueryVo.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrScheduleMapper.java
@@ -25,5 +25,5 @@
    List<PrSchedule> selectSome(Map<String, Object> params);
    List<PrSchedule> selectAll(@Param("scheduleDate") String scheduleDate,@Param("userId") String userId);
    List<PrSchedule> selectAll(@Param("scheduleDate") String scheduleDate,@Param("userId") Long userId);
}
pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
@@ -189,7 +189,7 @@
      <if test="password!= null and password !=''">
        `password`,
      </if>
      <if test="supperAdmin!= null and supperAdmin !=''">
      <if test="supperAdmin!= null">
        supper_admin,
      </if>
      <if test="disabled != null">
@@ -212,7 +212,7 @@
      <if test="password!= null and password !=''">
        #{password},
      </if>
      <if test="supperAdmin!= null and supperAdmin !=''">
      <if test="supperAdmin!= null">
        #{supperAdmin},
      </if>
      <if test="disabled != null">
@@ -236,7 +236,7 @@
      <if test="password!= null and password !=''">
        `password` = #{password},
      </if>
      <if test="supperAdmin!= null and supperAdmin !=''">
      <if test="supperAdmin!= null">
        supper_admin = #{supperAdmin},
      </if>
      <if test="disabled != null">
pms-parent/pms-global/src/main/resources/mapper/PrScheduleMapper.xml
@@ -70,7 +70,7 @@
      <if test="deleted != null">
        #{deleted,jdbcType=TINYINT},
      </if>
      <if test="dt != null">
      <if test="dt != null and dt !=''">
        #{dt,jdbcType=TIMESTAMP},
      </if>
    </trim>
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/user/UserCtrl.java
@@ -95,6 +95,7 @@
        po.supperAdmin = Constant.no.byteValue() ;
//            po.disabled = false ;//默认不禁用
        po.deleted = false;//默认不删除
        po.supperAdmin = 0;//默认不是管理员
        if (!StringUtils.isNullOrEmpty(po.password)) {
                /*
                如果前端进行了base64加密
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/QueryVo.java
@@ -12,5 +12,6 @@
public class QueryVo extends QueryConditionVo {
    public String planName;
    public String scheduleDate;
    public String userId;
    public Long userId;
}
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
@@ -98,7 +98,7 @@
    @PostMapping(path="some")
    @SsoPowerAop(power = "10200008")
    @Log("分页查询排班")
    public BaseResponse<QueryResultVo<List<PrSchedule>>> some(@RequestBody com.dy.pmsProduct.schedule.QueryVo vo){
    public BaseResponse<QueryResultVo<List<PrSchedule>>> some(@RequestBody QueryVo vo){
        QueryResultVo<List<PrSchedule>> list = sv.selectSome(vo) ;
        return BaseResponseUtils.buildSuccess(list);
    }