Commit e876eacf by jianan

零时薪资单6

parent 6a7fbdf8
......@@ -447,17 +447,14 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
if ("1".equals(salary.getIsBasic())) {
payScaleInfo.setIsBasic(1);
}
time = payScaleInfo.getMonDtlPeriod();
if (StringUtils.isNotBlank(time)) {
payScaleInfo.setYears(time.substring(0, 4));
payScaleInfo.setMonth(time.substring(4));
}
resultList.add(payScaleInfo);
}
for (PayScaleInfo info : resultList) {
if (StringUtils.isNotBlank(info.getMonDtlPeriod())) {
time = info.getMonDtlPeriod();
info.setYears(time.substring(0, 4));
info.setMonth(time.substring(4));
}
}
return resultList;
}
......@@ -769,10 +766,10 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
public QuerySalaryDetailResponseVO querySalaryDetail(QuerySalaryDetailRequestVO requestVO) {
QuerySalaryDetailResponseVO responseVO = new QuerySalaryDetailResponseVO();
// isBasic为0时查询N22,为1时查询本地数据库表
if ("0".equals(requestVO.getIsBasic())) {
this.querySalaryDetailFromN22(requestVO, responseVO);
} else {
if ("1".equals(requestVO.getIsBasic())) {
this.querySalaryDetail(requestVO, responseVO);
} else {
this.querySalaryDetailFromN22(requestVO, responseVO);
}
return responseVO;
......@@ -797,10 +794,13 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
List<AgAclSalary> newSalaryList = agAclSalaryMapper.queryByRecord(agAclSalary);
BigDecimal abc = BigDecimal.ZERO;
BigDecimal d = BigDecimal.ZERO;
for (AgAclSalary item : newSalaryList) {
abc = abc.add(item.getAmount());
d = d.add(item.getTax());
}
responseVO.setAbc(abc.toString());
responseVO.setD(d.toString());
// list
List<SalaryDetail> list = new ArrayList<>();
for (AgAclSalary item : newSalaryList) {
......
......@@ -237,7 +237,6 @@
<select id="queryByRecord" parameterType="com.yd.dal.entity.salary.AgAclSalary" resultMap="BaseResultMap">
select * from ag_acl_salary
where 1=1
<trim suffixOverrides=",">
<if test="practitionerId != null">
and practitioner_id = #{practitionerId,jdbcType=BIGINT}
</if>
......@@ -286,6 +285,5 @@
<if test="updatedBy != null">
and updated_by = #{updatedBy,jdbcType=BIGINT}
</if>
</trim>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment