ly 1 ano atrás
pai
commit
7d6ebf1569

+ 1 - 1
src/main/java/cn/ezhizao/project/business/housingFund/controller/BizHousingFundConfirmController.java

@@ -175,7 +175,7 @@ public class BizHousingFundConfirmController extends BaseController {
             Map<String, Object> detailConditions = new HashMap<>();
             detailConditions.put("year", conditions.getYear());
             detailConditions.put("mainIds", list.stream().map(BizHousingFundConfirm::getId).collect(Collectors.toList()));
-            List<BizHousingFundConfirmDetail> details = housingFundConfirmDetailService.getList(detailConditions);
+            List<BizHousingFundConfirmDetail> details = housingFundConfirmDetailService.getList2(detailConditions);
             list.forEach(l -> {
                 l.setDetails(details.stream().filter(v -> v.getHousingFundConfirmId().equals(l.getId())).collect(Collectors.toList()));
             });

+ 2 - 1
src/main/java/cn/ezhizao/project/business/housingFund/controller/BizHousingFundDeclareController.java

@@ -116,7 +116,8 @@ public class BizHousingFundDeclareController extends BaseController {
             detailConditions.setYear(conditions.getYear());
             detailConditions.setMonth(conditions.getMonth());
             detailConditions.setMainIds(list.stream().map(BizHousingFundDeclare::getId).collect(Collectors.toList()));
-            List<BizHousingFundDeclareDetail> details = housingFundDeclareDetailService.getListByBean(detailConditions);
+//            List<BizHousingFundDeclareDetail> details = housingFundDeclareDetailService.getListByBean(detailConditions);
+            List<BizHousingFundDeclareDetail> details = housingFundDeclareDetailService.getListByBean2(detailConditions);
             list.forEach(l -> {
                 List<BizHousingFundDeclareDetail> lDetail = details.stream().filter(v -> v.getHousingFundDeclareId().equals(l.getId())).collect(Collectors.toList());
                 l.setDetail(lDetail.isEmpty() ? null : lDetail.get(0));

+ 1 - 0
src/main/java/cn/ezhizao/project/business/housingFund/mapper/BizHousingFundConfirmDetailMapper.java

@@ -38,6 +38,7 @@ public interface BizHousingFundConfirmDetailMapper extends BaseMapper<BizHousing
     int getTotal(Map<String, Object> conditions);
 
 
+    List<BizHousingFundConfirmDetail> getList2(Map<String, Object> conditions);
 }
 
 

+ 1 - 0
src/main/java/cn/ezhizao/project/business/housingFund/mapper/BizHousingFundDeclareDetailMapper.java

@@ -38,6 +38,7 @@ public interface BizHousingFundDeclareDetailMapper extends BaseMapper<BizHousing
     int getTotal(Map<String, Object> conditions);
 
 
+    List<BizHousingFundDeclareDetail> getList2(BizHousingFundDeclareDetail financialHousingFundDeclareDetail);
 }
 
 

+ 1 - 0
src/main/java/cn/ezhizao/project/business/housingFund/service/IBizHousingFundConfirmDetailService.java

@@ -36,4 +36,5 @@ public interface IBizHousingFundConfirmDetailService extends IService<BizHousing
      */
     int getTotal(Map<String, Object> conditions);
 
+    List<BizHousingFundConfirmDetail> getList2(Map<String, Object> detailConditions);
 }

+ 1 - 0
src/main/java/cn/ezhizao/project/business/housingFund/service/IBizHousingFundDeclareDetailService.java

@@ -36,4 +36,5 @@ public interface IBizHousingFundDeclareDetailService extends IService<BizHousing
      */
     int getTotal(Map<String, Object> conditions);
 
+    List<BizHousingFundDeclareDetail> getListByBean2(BizHousingFundDeclareDetail detailConditions);
 }

+ 6 - 1
src/main/java/cn/ezhizao/project/business/housingFund/service/impl/BizHousingFundConfirmDetailServiceImpl.java

@@ -40,7 +40,12 @@ public class BizHousingFundConfirmDetailServiceImpl extends ServiceImpl<BizHousi
     public int getTotal(Map<String,Object> conditions) {
         return financialHousingFundConfirmDetailDao.getTotal(conditions);
     }
-    
+
+    @Override
+    public List<BizHousingFundConfirmDetail> getList2(Map<String, Object> conditions) {
+        return financialHousingFundConfirmDetailDao.getList2(conditions);
+    }
+
     @Override
     @Transactional
     public boolean save(BizHousingFundConfirmDetail entity) {

+ 5 - 0
src/main/java/cn/ezhizao/project/business/housingFund/service/impl/BizHousingFundDeclareDetailServiceImpl.java

@@ -35,4 +35,9 @@ public class BizHousingFundDeclareDetailServiceImpl extends ServiceImpl<BizHousi
         return financialHousingFundDeclareDetailDao.getTotal(conditions);
     }
 
+    @Override
+    public List<BizHousingFundDeclareDetail> getListByBean2(BizHousingFundDeclareDetail financialHousingFundDeclareDetail) {
+        return financialHousingFundDeclareDetailDao.getList2(financialHousingFundDeclareDetail);
+    }
+
 }

+ 1 - 1
src/main/java/cn/ezhizao/project/business/socialSecurity/controller/SocialSecurityConfirmController.java

@@ -116,7 +116,7 @@ public class SocialSecurityConfirmController extends BaseController {
             // 先获取之前的一个月是否已填报,然后获取填报后的工资人员信息
             BizSocialSecurityConfirmDetail detail = socialSecurityConfirmDetailService.query().eq("social_security_confirm_id", condition.getSocialSecurityConfirmId()).lt("concat(year,month)", condition.getYear() + condition.getMonth()).orderByDesc("concat(year, month)").last("limit 1").one();
             if (detail != null) {
-                List<BizSocialSecurityConfirmDetailEmployee> employees = socialSecurityConfirmDetailEmployeeService.query().eq("social_security_confirm_detail_id", detail.getId()).ne("change_status", 2).list();
+                List<BizSocialSecurityConfirmDetailEmployee> employees = socialSecurityConfirmDetailEmployeeService.query().eq("social_security_confirm_detail_id", detail.getId()).list();
                 employees.forEach(l -> l.setId(null));
                 condition.setDetails(employees);
             } else {

+ 6 - 2
src/main/resources/mybatis/business/BizHousingFundConfirmDetailMapper.xml

@@ -6,7 +6,9 @@
         <id column="id" jdbcType="BIGINT" property="id"/>
         <collection property="details" select="getEmployees" column="id" />
     </resultMap>
-
+    <resultMap id="BaseResultMap2" type="cn.ezhizao.project.business.housingFund.domain.BizHousingFundConfirmDetail">
+        <id column="id" jdbcType="BIGINT" property="id"/>
+    </resultMap>
     <resultMap id="EmployeeResult" type="cn.ezhizao.project.business.housingFund.domain.BizHousingFundConfirmDetailEmployee">
         <id column="id" jdbcType="INTEGER" property="id"/>
     </resultMap>
@@ -20,7 +22,9 @@
     <select id="getList" resultMap="BaseResultMap">
         <include refid="getListSql"/>
     </select>
-
+    <select id="getList2" resultMap="BaseResultMap2">
+        <include refid="getListSql"/>
+    </select>
     <!--带条件的List查询 数据总条数-->
     <select id="getTotal" resultType="java.lang.Integer">
         SELECT COUNT(1) FROM (<include refid="getListSql"/>) AS C

+ 8 - 1
src/main/resources/mybatis/business/BizHousingFundDeclareDetailMapper.xml

@@ -9,6 +9,11 @@
                     column="id"/>
     </resultMap>
 
+    <resultMap id="BaseResultMap2" type="cn.ezhizao.project.business.housingFund.domain.BizHousingFundDeclareDetail">
+        <id column="id" jdbcType="BIGINT" property="id"/>
+        <result column="id" jdbcType="BIGINT" property="id"/>
+    </resultMap>
+
     <resultMap type="cn.ezhizao.project.system.domain.SysFileStorage" id="FileStorageResult">
         <id column="id" property="id"/>
     </resultMap>
@@ -26,7 +31,9 @@
     <select id="getList" resultMap="BaseResultMap">
         <include refid="getListSql"/>
     </select>
-
+    <select id="getList2" resultMap="BaseResultMap2">
+        <include refid="getListSql"/>
+    </select>
     <!--带条件的List查询 数据总条数-->
     <select id="getTotal" resultType="java.lang.Integer">
         SELECT COUNT(1) FROM (<include refid="getListSql"/>) AS C