Browse Source

修BUG

contract
15989082884@163.com 2 years ago
parent
commit
b971d61c2f
  1. 14
      src/main/java/com/qs/serve/modules/sys/controller/SysUserController.java
  2. 4
      src/main/java/com/qs/serve/modules/tbs/entity/vo/TbsCostApplyVo.java
  3. 4
      src/main/resources/mapper/tbs/TbsCostApplyMapper.xml

14
src/main/java/com/qs/serve/modules/sys/controller/SysUserController.java

@ -309,7 +309,7 @@ public class SysUserController {
param.setSyUserId("");
}
if(param.getSyAccount()==null){
param.setSyAccount("");
param.setSyAccount(userBo.getCode());
}
param.setId("SU"+IdUtil.getSnowFlakeId());
boolean result = sysUserService.save(param);
@ -334,12 +334,12 @@ public class SysUserController {
if(param.getLoginEnable()!=null){
param.setServingState(param.getLoginEnable()==1?1:0);
}
if(param.getSyUserId()==null){
param.setSyUserId("");
}
if(param.getSyAccount()==null){
param.setSyAccount("");
}
// if(param.getSyUserId()==null){
param.setSyUserId(null);
// }
// if(param.getSyAccount()==null){
param.setSyAccount(null);
// }
param.setSuperFlag(null);
param.setPassword(null);
param.setUpdateTime(LocalDateTime.now());

4
src/main/java/com/qs/serve/modules/tbs/entity/vo/TbsCostApplyVo.java

@ -88,7 +88,9 @@ public class TbsCostApplyVo implements Serializable {
/**
* 0=>未逾期1=>已逾期2=>即将逾期
*/
Integer overdueState;
private Integer overdueState;
private String templateTitle;
}

4
src/main/resources/mapper/tbs/TbsCostApplyMapper.xml

@ -58,7 +58,8 @@
tbs_cost_apply.`create_by`,
tbs_cost_apply.`update_by`,
tbs_cost_apply.`del_flag`,
tbs_cost_apply.`template_id` </sql>
tbs_cost_apply.`template_id`,
tbs_cost_apply.`template_title` </sql>
@ -151,6 +152,7 @@
<if test="query.createBy != null and query.createBy != ''"> and `tbs_cost_apply`.`create_by` = #{query.createBy}</if>
<if test="query.updateBy != null and query.updateBy != ''"> and `tbs_cost_apply`.`update_by` = #{query.updateBy}</if>
<if test="query.delFlag != null and query.delFlag != ''"> and `tbs_cost_apply`.`del_flag` = #{query.delFlag}</if>
<if test="query.templateTitle != null and query.templateTitle != ''"> and `tbs_cost_apply`.`template_title` like concat('%', #{query.templateTitle},'%')</if>
</sql>
</mapper>

Loading…
Cancel
Save