Commit a07eea68 authored by hongguangwu's avatar hongguangwu

去掉了isSettle:倩倩说的

parent 23746934
...@@ -513,12 +513,6 @@ public class TForecastLibrary extends BaseEntity { ...@@ -513,12 +513,6 @@ public class TForecastLibrary extends BaseEntity {
@ExcelAttribute(name = "数据类型:预估/差额") @ExcelAttribute(name = "数据类型:预估/差额")
@ExcelProperty("数据类型:预估/差额") @ExcelProperty("数据类型:预估/差额")
private String diffType; private String diffType;
/**
* 是否结算:0否/1是
*/
@ExcelAttribute(name = "是否结算")
@ExcelProperty("是否结算")
private String isSettle;
@TableField(exist = false) @TableField(exist = false)
private List<String> idList; private List<String> idList;
......
...@@ -149,12 +149,11 @@ public class TForecastLibraryController { ...@@ -149,12 +149,11 @@ public class TForecastLibraryController {
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_create')") @PreAuthorize("@pms.hasPermission('social_tforecastlibrary_create')")
public R<String> createForecastlibary(@RequestParam String payMonths public R<String> createForecastlibary(@RequestParam String payMonths
, @RequestParam(value = "empIdCard", required = false) String empIdCard , @RequestParam(value = "empIdCard", required = false) String empIdCard
, @RequestParam(value = "settleDomainIds", required = false) String settleDomainIds , @RequestParam(value = "settleDomainIds", required = false) String settleDomainIds) {
,@RequestParam String isSettle) {
if (Common.isEmpty(empIdCard) && Common.isEmpty(settleDomainIds)) { if (Common.isEmpty(empIdCard) && Common.isEmpty(settleDomainIds)) {
return R.failed("参数有误:身份证或项目ID不可为空!"); return R.failed("参数有误:身份证或项目ID不可为空!");
} }
return tForecastLibraryService.createForecastlibary(payMonths, empIdCard, settleDomainIds, isSettle); return tForecastLibraryService.createForecastlibary(payMonths, empIdCard, settleDomainIds);
} }
/** /**
......
...@@ -54,7 +54,7 @@ public interface TForecastLibraryService extends IService<TForecastLibrary> { ...@@ -54,7 +54,7 @@ public interface TForecastLibraryService extends IService<TForecastLibrary> {
* @Date: 2022/7/18 17:11 * @Date: 2022/7/18 17:11
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.Boolean>
**/ **/
R<String> createForecastlibary(String payMonths, String empIdCard, String settleDomainIds, String isSettle); R<String> createForecastlibary(String payMonths, String empIdCard, String settleDomainIds);
/** /**
* @param socialFundInfo * @param socialFundInfo
......
...@@ -26,7 +26,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -26,7 +26,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*; import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import com.yifu.cloud.plus.v1.yifu.social.constants.SocialConstants; import com.yifu.cloud.plus.v1.yifu.social.constants.SocialConstants;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo; import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo;
import com.yifu.cloud.plus.v1.yifu.social.entity.TAgentConfig; import com.yifu.cloud.plus.v1.yifu.social.entity.TAgentConfig;
...@@ -39,7 +38,6 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.TSocialFundInfoMapper; ...@@ -39,7 +38,6 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.TSocialFundInfoMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.TForecastLibraryService; import com.yifu.cloud.plus.v1.yifu.social.service.TForecastLibraryService;
import com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil; import com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil;
import com.yifu.cloud.plus.v1.yifu.social.vo.TForecastLibraryExportVo; import com.yifu.cloud.plus.v1.yifu.social.vo.TForecastLibraryExportVo;
import com.yifu.cloud.plus.v1.yifu.social.vo.TForecastLibraryVo;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -182,7 +180,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap ...@@ -182,7 +180,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.Boolean>
**/ **/
@Override @Override
public R<String> createForecastlibary(String payMonths, String empIdCard, String settleDomainIds, String isSettle) { public R<String> createForecastlibary(String payMonths, String empIdCard, String settleDomainIds) {
//定义未推送的按条件查询得到的预估数据 //定义未推送的按条件查询得到的预估数据
List<TForecastLibrary> librarySocialList = null; List<TForecastLibrary> librarySocialList = null;
//定义已推送的按条件查询得到的预估数据 //定义已推送的按条件查询得到的预估数据
...@@ -287,7 +285,6 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap ...@@ -287,7 +285,6 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
if (Common.isEmpty(library.getSocialId()) && Common.isEmpty(library.getProvidentId())) { if (Common.isEmpty(library.getSocialId()) && Common.isEmpty(library.getProvidentId())) {
continue; continue;
} }
library.setIsSettle(isSettle);
if (Common.isNotNull(library.getId())) { if (Common.isNotNull(library.getId())) {
baseMapper.updateById(library); baseMapper.updateById(library);
} else { } else {
...@@ -1133,9 +1130,9 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap ...@@ -1133,9 +1130,9 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
socialFund.setPersonalProvidentCardinal(socialSet.getUpperLimit()); socialFund.setPersonalProvidentCardinal(socialSet.getUpperLimit());
} }
//单边小数点处理逻辑 //单边小数点处理逻辑
if (Common.isNotNull(socialSet.getFundPayPoint())){ if (Common.isNotNull(socialSet.getFundPayPoint())) {
socialFund.setUnitFundSum(Common.formatMoneyForFund(BigDecimalUtils.safeMultiply(socialFund.getUnitProvidengCardinal(), socialFund.getUnitProvidentPer(),BigDecimal.valueOf(CommonConstants.ONE_OF_PERCENT.doubleValue())),Integer.valueOf(socialFund.getFundPayPoint()))); socialFund.setUnitFundSum(Common.formatMoneyForFund(BigDecimalUtils.safeMultiply(socialFund.getUnitProvidengCardinal(), socialFund.getUnitProvidentPer(), BigDecimal.valueOf(CommonConstants.ONE_OF_PERCENT.doubleValue())), Integer.valueOf(socialFund.getFundPayPoint())));
socialFund.setPersonalFundSum(Common.formatMoneyForFund(BigDecimalUtils.safeMultiply(socialFund.getPersonalProvidentCardinal(), socialFund.getPersonalProvidentPer(),BigDecimal.valueOf(CommonConstants.ONE_OF_PERCENT.doubleValue())),Integer.valueOf(socialFund.getFundPayPoint()))); socialFund.setPersonalFundSum(Common.formatMoneyForFund(BigDecimalUtils.safeMultiply(socialFund.getPersonalProvidentCardinal(), socialFund.getPersonalProvidentPer(), BigDecimal.valueOf(CommonConstants.ONE_OF_PERCENT.doubleValue())), Integer.valueOf(socialFund.getFundPayPoint())));
} }
} }
} }
......
...@@ -97,7 +97,6 @@ ...@@ -97,7 +97,6 @@
<result property="dataPush" column="DATA_PUSH"/> <result property="dataPush" column="DATA_PUSH"/>
<result property="dataType" column="DATA_TYPE"/> <result property="dataType" column="DATA_TYPE"/>
<result property="diffType" column="DIFF_TYPE"/> <result property="diffType" column="DIFF_TYPE"/>
<result property="isSettle" column="IS_SETTLE"/>
<result property="createBy" column="CREATE_BY"/> <result property="createBy" column="CREATE_BY"/>
<result property="createName" column="CREATE_NAME"/> <result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/> <result property="createTime" column="CREATE_TIME"/>
...@@ -241,7 +240,6 @@ ...@@ -241,7 +240,6 @@
a.DATA_PUSH, a.DATA_PUSH,
a.DATA_TYPE, a.DATA_TYPE,
a.DIFF_TYPE, a.DIFF_TYPE,
a.IS_SETTLE,
a.CREATE_BY, a.CREATE_BY,
a.CREATE_NAME, a.CREATE_NAME,
a.CREATE_TIME, a.CREATE_TIME,
...@@ -472,9 +470,6 @@ ...@@ -472,9 +470,6 @@
<if test="tForecastLibrary.diffType != null and tForecastLibrary.diffType.trim() != ''"> <if test="tForecastLibrary.diffType != null and tForecastLibrary.diffType.trim() != ''">
AND a.DIFF_TYPE = #{tForecastLibrary.diffType} AND a.DIFF_TYPE = #{tForecastLibrary.diffType}
</if> </if>
<if test="tForecastLibrary.isSettle != null and tForecastLibrary.isSettle.trim() != ''">
AND a.IS_SETTLE = #{tForecastLibrary.isSettle}
</if>
<if test="tForecastLibrary.createBy != null and tForecastLibrary.createBy.trim() != ''"> <if test="tForecastLibrary.createBy != null and tForecastLibrary.createBy.trim() != ''">
AND a.CREATE_BY = #{tForecastLibrary.createBy} AND a.CREATE_BY = #{tForecastLibrary.createBy}
</if> </if>
......
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