Commit c3c5b6c1 authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/MVP1.4' into MVP1.4

parents e00c6397 ceebc93e
...@@ -300,27 +300,51 @@ public class TInsuranceDetail extends BaseEntity { ...@@ -300,27 +300,51 @@ public class TInsuranceDetail extends BaseEntity {
/** /**
* 收入信息结算状态 0 已结算 1 结算中 2 未结算 3 无需结算 * 收入信息结算状态 0 已结算 1 结算中 2 未结算 3 无需结算
*/ */
@Schema(description = "收入信息结算状态") @Schema(description = "预估收入信息结算状态")
private String incomeSettleFlag; private String incomeSettleFlag;
/** /**
* 收入信息结算状态 0 已收 1 未收 2 垫付 * 收入信息结算状态 0 已收 1 未收 2 垫付
*/ */
@Schema(description = "收入信息收款状态") @Schema(description = "预估收入信息收款状态")
private String incomeCollectFlag; private String incomeCollectFlag;
/** /**
* 支出信息结算状态 0 已结算 1 结算中 2 未结算 3 无需结算 * 支出信息结算状态 0 已结算 1 结算中 2 未结算 3 无需结算
*/ */
@Schema(description = "支出信息结算状态") @Schema(description = "预估支出信息结算状态")
private String paySettleFlag; private String paySettleFlag;
/** /**
* 收入信息结算状态 0 已付 1 未付 * 收入信息结算状态 0 已付 1 未付
*/ */
@Schema(description = "支出信息付款状态") @Schema(description = "预估支出信息付款状态")
private String payCollectFlag; private String payCollectFlag;
/**
* 收入信息结算状态 0 已结算 1 结算中 2 未结算 3 无需结算
*/
@Schema(description = "实缴收入信息结算状态")
private String sincomeSettleFlag;
/**
* 收入信息结算状态 0 已收 1 未收 2 垫付
*/
@Schema(description = "实缴收入信息收款状态")
private String sincomeCollectFlag;
/**
* 支出信息结算状态 0 已结算 1 结算中 2 未结算 3 无需结算
*/
@Schema(description = "实缴支出信息结算状态")
private String spaySettleFlag;
/**
* 收入信息结算状态 0 已付 1 未付
*/
@Schema(description = "实缴支出信息付款状态")
private String spayCollectFlag;
/** /**
* 创建人所在部门 * 创建人所在部门
*/ */
......
...@@ -37,5 +37,9 @@ public class EkpInsuranceViewVo implements Serializable { ...@@ -37,5 +37,9 @@ public class EkpInsuranceViewVo implements Serializable {
* 支出信息付款状态 0 已付 1 未付 * 支出信息付款状态 0 已付 1 未付
*/ */
private String payCollectFlag; private String payCollectFlag;
/**
* 订单类型
*/
private String orderType;
} }
...@@ -24,7 +24,6 @@ public interface EkpSettleMapper { ...@@ -24,7 +24,6 @@ public interface EkpSettleMapper {
*/ */
SettleVo getSettle(String id); SettleVo getSettle(String id);
List<EkpInsuranceViewVo> selectSettleStatusBySettleNo(@Param("settleNo") String settleNo, @Param("payFlag") String payFlag); List<EkpInsuranceViewVo> selectSettleStatusBySettleNo(@Param("settleNo") String settleNo, @Param("payFlag") String payFlag);
List<EkpSocialViewVo> selectSocialViewStatusBySettleNo(@Param("settleNo") String settleNo,@Param("payFlag") String payFlag); List<EkpSocialViewVo> selectSocialViewStatusBySettleNo(@Param("settleNo") String settleNo,@Param("payFlag") String payFlag);
......
...@@ -7242,13 +7242,24 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -7242,13 +7242,24 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
insuranceId = viewVo.getId().substring(0,19); insuranceId = viewVo.getId().substring(0,19);
detail = baseMapper.selectById(insuranceId); detail = baseMapper.selectById(insuranceId);
if (Common.isNotNull(detail)) { if (Common.isNotNull(detail)) {
//判断是收入还是支出结算单号 //判断订单类型是预估还是实缴
if (CommonConstants.ZERO_STRING.equals(vo.getPayFlag())) { if (InsurancesConstants.ACTUAL_SETTLE_BILL.equals(viewVo.getOrderType())) {
detail.setIncomeSettleFlag(viewVo.getIncomeSettleFlag()); //判断是收入还是支出结算单号
detail.setIncomeCollectFlag(viewVo.getIncomeCollectFlag()); if (CommonConstants.ZERO_STRING.equals(vo.getPayFlag())) {
detail.setSincomeSettleFlag(viewVo.getIncomeSettleFlag());
detail.setSincomeCollectFlag(viewVo.getIncomeCollectFlag());
} else {
detail.setSpaySettleFlag(viewVo.getPaySettleFlag());
detail.setSpayCollectFlag(viewVo.getPayCollectFlag());
}
} else { } else {
detail.setPaySettleFlag(viewVo.getPaySettleFlag()); if (CommonConstants.ZERO_STRING.equals(vo.getPayFlag())) {
detail.setPayCollectFlag(viewVo.getPayCollectFlag()); detail.setIncomeSettleFlag(viewVo.getIncomeSettleFlag());
detail.setIncomeCollectFlag(viewVo.getIncomeCollectFlag());
} else {
detail.setPaySettleFlag(viewVo.getPaySettleFlag());
detail.setPayCollectFlag(viewVo.getPayCollectFlag());
}
} }
baseMapper.updateById(detail); baseMapper.updateById(detail);
} }
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<result property="incomeCollectFlag" column="receiptStatus" jdbcType="VARCHAR"/> <result property="incomeCollectFlag" column="receiptStatus" jdbcType="VARCHAR"/>
<result property="paySettleFlag" column="zhichuEarningStatus" jdbcType="VARCHAR"/> <result property="paySettleFlag" column="zhichuEarningStatus" jdbcType="VARCHAR"/>
<result property="payCollectFlag" column="payStatus" jdbcType="VARCHAR"/> <result property="payCollectFlag" column="payStatus" jdbcType="VARCHAR"/>
<result property="orderType" column="orderType" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<resultMap id="BaseResultSocialStatusMap" type="com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo"> <resultMap id="BaseResultSocialStatusMap" type="com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo">
...@@ -33,7 +34,7 @@ ...@@ -33,7 +34,7 @@
</sql> </sql>
<sql id="Base_Column_List_Status"> <sql id="Base_Column_List_Status">
detailsId,earningStatus,receiptStatus,zhichuEarningStatus,payStatus detailsId,earningStatus,receiptStatus,zhichuEarningStatus,payStatus,orderType
</sql> </sql>
<select id="getSettle" resultMap="BaseResultMap"> <select id="getSettle" resultMap="BaseResultMap">
......
...@@ -66,6 +66,10 @@ ...@@ -66,6 +66,10 @@
<result property="incomeCollectFlag" column="INCOME_COLLECT_FLAG"/> <result property="incomeCollectFlag" column="INCOME_COLLECT_FLAG"/>
<result property="paySettleFlag" column="PAY_COLLECT_FLAG"/> <result property="paySettleFlag" column="PAY_COLLECT_FLAG"/>
<result property="payCollectFlag" column="PAY_SETTLE_FLAG"/> <result property="payCollectFlag" column="PAY_SETTLE_FLAG"/>
<result property="sincomeSettleFlag" column="SINCOME_SETTLE_FLAG"/>
<result property="sincomeCollectFlag" column="SINCOME_COLLECT_FLAG"/>
<result property="spaySettleFlag" column="SPAY_COLLECT_FLAG"/>
<result property="spayCollectFlag" column="SPAY_SETTLE_FLAG"/>
</resultMap> </resultMap>
<resultMap id="UpdateMap" type="com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceUpdateVO"> <resultMap id="UpdateMap" type="com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceUpdateVO">
<id property="id" column="ID" jdbcType="VARCHAR"/> <id property="id" column="ID" jdbcType="VARCHAR"/>
......
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