liuliang
This commit is contained in:
parent
36e2f96ae5
commit
1effdf42aa
|
|
@ -14,6 +14,7 @@ import com.engine.salary.encrypt.sischeme.InsuranceSchemeDetailPOEncrypt;
|
|||
import com.engine.salary.entity.datacollection.DataCollectionEmployee;
|
||||
import com.engine.salary.entity.salaryacct.dto.SalaryAcctProgressDTO;
|
||||
import com.engine.salary.entity.siaccount.dto.InsuranceAccountViewListDTO;
|
||||
import com.engine.salary.entity.siaccount.dto.SIAccountUtilDTO;
|
||||
import com.engine.salary.entity.siaccount.param.*;
|
||||
import com.engine.salary.entity.siaccount.po.InsuranceAccountBatchPO;
|
||||
import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailPO;
|
||||
|
|
@ -1686,8 +1687,10 @@ public class SIAccountBiz extends Service {
|
|||
* @return
|
||||
*/
|
||||
public int checkIfBusinessaccounting(InsuranceAccountBatchPO param) {
|
||||
List<SIAccountUtilDTO> list = getSIAccountUtilMapper().checkIfBusinessaccounting(param.getId());
|
||||
return (int) list.stream().filter(e -> e.getBillmonth().equals(e.getTaxcycle().substring(0,7))).count();
|
||||
|
||||
|
||||
return getSIAccountUtilMapper().checkIfBusinessaccounting(param.getId()).get(0).getNum();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,4 +15,12 @@ public class SIAccountUtilDTO {
|
|||
* 数量
|
||||
*/
|
||||
private int num;
|
||||
/**
|
||||
* 账单月份
|
||||
*/
|
||||
private String billmonth;
|
||||
/**
|
||||
* 税款所属期
|
||||
*/
|
||||
private String taxcycle;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
<resultMap id="BaseResultMap" type="com.engine.salary.entity.siaccount.dto.SIAccountUtilDTO">
|
||||
<result column="num" property="num"/>
|
||||
<result column="billmonth" property="billmonth"/>
|
||||
<result column="taxcycle" property="taxcycle"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="checkIfBusinessaccounting" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
COUNT(0) num
|
||||
a.bill_month billmonth,c.tax_cycle taxcycle
|
||||
FROM
|
||||
hrsa_bill_batch a,hrsa_salary_sob b,hrsa_salary_acct_record c
|
||||
WHERE
|
||||
|
|
|
|||
Loading…
Reference in New Issue