shiqian 3 жил өмнө
parent
commit
b9197d6bd4

+ 2 - 1
boman-web-core/src/main/java/com/boman/web/core/service/czrk/CzrkServiceImpl.java

@@ -347,7 +347,8 @@ public class CzrkServiceImpl implements ICzrkService {
     @Override
     @Override
     @Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
     @Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
     public AjaxResult addRlry(Czrk czrk) {
     public AjaxResult addRlry(Czrk czrk) {
-        String username = SecurityUtils.getUsername();
+        SysUser sysUser = AuthUtils.getLoginUser().getSysUser();
+        String username = sysUser.getUserName();
         if (isNotEmpty(czrk.getVillageTowns())) {
         if (isNotEmpty(czrk.getVillageTowns())) {
             czrk.setRlr(username);
             czrk.setRlr(username);
             czrk.setIsRl("是");
             czrk.setIsRl("是");

+ 3 - 0
boman-web-core/src/main/resources/mapper/CzrkMapper.xml

@@ -425,6 +425,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="keyIndustries != null">key_Industries,</if>
             <if test="keyIndustries != null">key_Industries,</if>
             <if test="houseType != null">house_type,</if>
             <if test="houseType != null">house_type,</if>
             <if test="rlr != null">rlr,</if>
             <if test="rlr != null">rlr,</if>
+            <if test="isRl != null">is_rl,</if>
             <if test="rlTime != null">rl_time,</if>
             <if test="rlTime != null">rl_time,</if>
             <if test="yhzgx != null">yhzgx,</if>
             <if test="yhzgx != null">yhzgx,</if>
             <if test="workUnit != null">work_unit,</if>
             <if test="workUnit != null">work_unit,</if>
@@ -462,6 +463,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="keyIndustries != null">#{keyIndustries},</if>
             <if test="keyIndustries != null">#{keyIndustries},</if>
             <if test="houseType != null">#{houseType},</if>
             <if test="houseType != null">#{houseType},</if>
             <if test="rlr != null">#{rlr},</if>
             <if test="rlr != null">#{rlr},</if>
+            <if test="isRl != null">#{isRl},</if>
             <if test="rlTime != null">#{rlTime},</if>
             <if test="rlTime != null">#{rlTime},</if>
             <if test="yhzgx != null">#{yhzgx},</if>
             <if test="yhzgx != null">#{yhzgx},</if>
             <if test="workUnit != null">#{workUnit},</if>
             <if test="workUnit != null">#{workUnit},</if>
@@ -502,6 +504,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="keyIndustries != null">key_industries = #{keyIndustries},</if>
             <if test="keyIndustries != null">key_industries = #{keyIndustries},</if>
             <if test="houseType != null">house_type = #{houseType},</if>
             <if test="houseType != null">house_type = #{houseType},</if>
             <if test="rlr != null">rlr = #{rlr},</if>
             <if test="rlr != null">rlr = #{rlr},</if>
+            <if test="isRl != null">is_rl = #{isRl},</if>
             <if test="rlTime != null">rl_time = #{rlTime},</if>
             <if test="rlTime != null">rl_time = #{rlTime},</if>
             <if test="yhzgx != null">yhzgx = #{yhzgx},</if>
             <if test="yhzgx != null">yhzgx = #{yhzgx},</if>
             <if test="workUnit != null">work_unit = #{workUnit},</if>
             <if test="workUnit != null">work_unit = #{workUnit},</if>