Commit 4877fb6d authored by fangxinjiang's avatar fangxinjiang

社保办理 &公积金办理 导出标识

parent 27f5b523
...@@ -715,4 +715,30 @@ public class TDispatchInfo extends BaseEntity { ...@@ -715,4 +715,30 @@ public class TDispatchInfo extends BaseEntity {
@TableField(exist = false) @TableField(exist = false)
private String pid; private String pid;
/**
* @Author fxj
* @Description 社保是否已导出
* @Date 15:32 2023/5/9
* @Param
* @return
**/
@ExcelAttribute(name = "社保是否已导出", maxLength = 1)
@Schema(description = "社保是否已导出:0否、1是" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("社保是否已导出" )
private String exportSocialFlag;
/**
* @Author fxj
* @Description 公積金是否已导出
* @Date 15:32 2023/5/9
* @Param
* @return
**/
@ExcelAttribute(name = "公积金是否已导出", maxLength = 1)
@Schema(description = "公积金是否已导出:0否、1是" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("公积金是否已导出" )
private String exportFundFlag;
} }
...@@ -208,4 +208,16 @@ public class FundHandleExportVo implements Serializable { ...@@ -208,4 +208,16 @@ public class FundHandleExportVo implements Serializable {
/*******************************导出字段结束*************************************************/ /*******************************导出字段结束*************************************************/
/**
* @Author fxj
* @Description 公積金是否已导出
* @Date 15:32 2023/5/9
* @Param
* @return
**/
@ExcelAttribute(name = "是否已导出", maxLength = 1,isDataId = true,readConverterExp = "0=否,1=是")
@Schema(description = "是否已导出:0否、1是" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("是否已导出" )
private String exportFundFlag;
} }
...@@ -414,5 +414,16 @@ public class SocialHandleExportVo implements Serializable { ...@@ -414,5 +414,16 @@ public class SocialHandleExportVo implements Serializable {
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("减少原因" ) @ExcelProperty("减少原因" )
private String reduceReason; private String reduceReason;
/**
* @Author fxj
* @Description 社保是否已导出
* @Date 15:32 2023/5/9
* @Param
* @return
**/
@ExcelAttribute(name = "是否已导出", maxLength = 1,isDataId = true,readConverterExp = "0=否,1=是")
@Schema(description = "是否已导出:0否、1是" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("是否已导出" )
private String exportSocialFlag;
} }
...@@ -264,7 +264,6 @@ public class TDispatchInfoController { ...@@ -264,7 +264,6 @@ public class TDispatchInfoController {
return R.ok(tDispatchInfoService.getSocialAndFundInfoById(id)); return R.ok(tDispatchInfoService.getSocialAndFundInfoById(id));
} }
/** /**
* 新增派单信息记录表 * 新增派单信息记录表
* @param tDispatchInfo 派单信息记录表 * @param tDispatchInfo 派单信息记录表
...@@ -621,4 +620,32 @@ public class TDispatchInfoController { ...@@ -621,4 +620,32 @@ public class TDispatchInfoController {
} }
} }
/**
* 社保花名册导出标识变更为否
* @param id
* @return R
*/
@Operation(summary = "社保花名册导出标识变更为否", description = "社保花名册导出标识变更为否")
@SysLog("社保花名册导出标识变更为否" )
@PutMapping
public R<Boolean> updateExportSocialFlagById(@RequestParam(value = "id") String id) {
if (Common.isEmpty(id)){
return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY);
}
return tDispatchInfoService.updateExportSocialFlagById(id);
}
/**
* 公积金变更清册导出标识变更为否
* @param id
* @return R
*/
@Operation(summary = "公积金变更清册导出标识变更为否", description = "公积金变更清册导出标识变更为否")
@SysLog("公积金变更清册导出标识变更为否" )
@PutMapping
public R<Boolean> updateExportFundFlagById(@RequestParam(value = "id") String id) {
if (Common.isEmpty(id)){
return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY);
}
return tDispatchInfoService.updateExportFundFlagById(id);
}
} }
...@@ -20,6 +20,7 @@ package com.yifu.cloud.plus.v1.yifu.social.mapper; ...@@ -20,6 +20,7 @@ package com.yifu.cloud.plus.v1.yifu.social.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.social.entity.TDispatchInfo; import com.yifu.cloud.plus.v1.yifu.social.entity.TDispatchInfo;
import com.yifu.cloud.plus.v1.yifu.social.vo.*; import com.yifu.cloud.plus.v1.yifu.social.vo.*;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
...@@ -72,6 +73,15 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> { ...@@ -72,6 +73,15 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
**/ **/
List<SocialHandleExportVo> getSocialRecordRosterList(@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo, List<SocialHandleExportVo> getSocialRecordRosterList(@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo,
@Param("idsStr") List<String> idsStr); @Param("idsStr") List<String> idsStr);
/**
* @Author fxj
* @Description 导出社保花名册数据更新导出状态
* @Date 16:20 2023/5/9
* @Param
* @return
**/
int updateSocialRecords(@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo,
@Param("idsStr") List<String> idsStr);
/** /**
* 导出社保花名册数据查询count * 导出社保花名册数据查询count
...@@ -136,5 +146,20 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> { ...@@ -136,5 +146,20 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
List<FundHandleExportVo> getFundRecordList(@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo, List<FundHandleExportVo> getFundRecordList(@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo,
@Param("idsStr") List<String> idsStr); @Param("idsStr") List<String> idsStr);
/**
* @Author fxj
* @Description 公积金变更清楚 导出状态更新
* @Date 16:16 2023/5/9
* @Param
* @return
**/
int updateFundRecords(@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo,
@Param("idsStr") List<String> idsStr);
String getMaxDispatchCode(); String getMaxDispatchCode();
int updateExportSocialFlagById(@Param("id")String id);
int updateExportFundFlagById(@Param("id")String id);
} }
...@@ -110,4 +110,8 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> { ...@@ -110,4 +110,8 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
R<List<ErrorMessage>> dispatchAdd(TDispatchImportVo importVo); R<List<ErrorMessage>> dispatchAdd(TDispatchImportVo importVo);
R<List<ErrorMessage>> fundImportHandle(InputStream inputStream); R<List<ErrorMessage>> fundImportHandle(InputStream inputStream);
R<Boolean> updateExportSocialFlagById(String id);
R<Boolean> updateExportFundFlagById(String id);
} }
...@@ -64,7 +64,6 @@ import com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil; ...@@ -64,7 +64,6 @@ import com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil;
import com.yifu.cloud.plus.v1.yifu.social.vo.*; import com.yifu.cloud.plus.v1.yifu.social.vo.*;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.apache.ibatis.annotations.Param;
import org.apache.shardingsphere.transaction.annotation.ShardingTransactionType; import org.apache.shardingsphere.transaction.annotation.ShardingTransactionType;
import org.apache.shardingsphere.transaction.core.TransactionType; import org.apache.shardingsphere.transaction.core.TransactionType;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -4678,6 +4677,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4678,6 +4677,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isNotNull(list)){ if (Common.isNotNull(list)){
list.clear(); list.clear();
} }
updateSocialRecords(searchVo,idStr);
} }
excelWriter.finish(); excelWriter.finish();
}else { }else {
...@@ -4726,6 +4726,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4726,6 +4726,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
private List<SocialHandleExportVo> getRecordRosterList(SocialHandleSearchVo searchVo, String idStr) { private List<SocialHandleExportVo> getRecordRosterList(SocialHandleSearchVo searchVo, String idStr) {
return baseMapper.getSocialRecordRosterList(searchVo,Common.getList(idStr)); return baseMapper.getSocialRecordRosterList(searchVo,Common.getList(idStr));
} }
private boolean updateSocialRecords(SocialHandleSearchVo searchVo, String idStr) {
return baseMapper.updateSocialRecords(searchVo,Common.getList(idStr)) >= 0;
}
@Override @Override
public IPage<TDispatchInfo> getTDispatchSocialHandlePage(Page<TDispatchInfo> page, SocialHandleSearchVo tDispatchInfo) { public IPage<TDispatchInfo> getTDispatchSocialHandlePage(Page<TDispatchInfo> page, SocialHandleSearchVo tDispatchInfo) {
...@@ -4792,6 +4795,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4792,6 +4795,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (Common.isNotNull(list)){ if (Common.isNotNull(list)){
list.clear(); list.clear();
} }
// 更新导出状态
updateFundRecords(searchVo,idStr);
} }
excelWriter.finish(); excelWriter.finish();
}else { }else {
...@@ -4819,6 +4824,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4819,6 +4824,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
private List<FundHandleExportVo> getFundRecordList(SocialHandleSearchVo searchVo, String idStr) { private List<FundHandleExportVo> getFundRecordList(SocialHandleSearchVo searchVo, String idStr) {
return baseMapper.getFundRecordList(searchVo,Common.getList(idStr)); return baseMapper.getFundRecordList(searchVo,Common.getList(idStr));
} }
private boolean updateFundRecords(SocialHandleSearchVo searchVo, String idStr) {
return baseMapper.updateFundRecords(searchVo,Common.getList(idStr)) >= 0;
}
private long getFundRecordCount(SocialHandleSearchVo searchVo, String idStr) { private long getFundRecordCount(SocialHandleSearchVo searchVo, String idStr) {
return baseMapper.getFundRecordCount(searchVo,Common.getList(idStr)); return baseMapper.getFundRecordCount(searchVo,Common.getList(idStr));
...@@ -5014,6 +5023,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -5014,6 +5023,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
return this.judgeAllMessage(errorMessageList); return this.judgeAllMessage(errorMessageList);
} }
/** /**
* @Author fxj * @Author fxj
* @Description 批量导入办理 处理逻辑 * @Description 批量导入办理 处理逻辑
...@@ -5074,4 +5084,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -5074,4 +5084,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
} }
} }
@Override
public R<Boolean> updateExportSocialFlagById(String id) {
return R.ok(baseMapper.updateExportSocialFlagById(id) >= 0);
}
@Override
public R<Boolean> updateExportFundFlagById(String id) {
return R.ok(baseMapper.updateExportFundFlagById(id) >= 0);
}
} }
...@@ -103,6 +103,8 @@ ...@@ -103,6 +103,8 @@
<resultMap id="dispatchPageMap" type="com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPageVo" extends="tDispatchInfoMap"> <resultMap id="dispatchPageMap" type="com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPageVo" extends="tDispatchInfoMap">
<result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/> <result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/>
<result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/> <result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/>
<result property="exportFundFlag" column="EXPORT_FUND_FLAG"/>
<result property="exportSocialFlag" column="EXPORT_SOCIAL_FLAG"/>
</resultMap> </resultMap>
<!-- 派单导出vo --> <!-- 派单导出vo -->
<resultMap id="exportMap" type="com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoExportVo"> <resultMap id="exportMap" type="com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoExportVo">
...@@ -939,7 +941,7 @@ ...@@ -939,7 +941,7 @@
<result property="workInjuryStart" column="WORK_INJURY_START"/> <result property="workInjuryStart" column="WORK_INJURY_START"/>
<result property="birthStart" column="BIRTH_START"/> <result property="birthStart" column="BIRTH_START"/>
<result property="bigailmentStart" column="BIGAILMENT_START"/> <result property="bigailmentStart" column="BIGAILMENT_START"/>
<result property="exportSocialFlag" column="EXPORT_SOCIAL_FLAG"/>
</resultMap> </resultMap>
<resultMap id="fundHandleMap" type="com.yifu.cloud.plus.v1.yifu.social.vo.FundHandleExportVo"> <resultMap id="fundHandleMap" type="com.yifu.cloud.plus.v1.yifu.social.vo.FundHandleExportVo">
...@@ -967,7 +969,7 @@ ...@@ -967,7 +969,7 @@
<result property="fundTrustRemark" column="TRUST_REMARK"/> <result property="fundTrustRemark" column="TRUST_REMARK"/>
<result property="leaveDate" column="LEAVE_DATE"/> <result property="leaveDate" column="LEAVE_DATE"/>
<result property="reduceReason" column="REDUCE_REASON"/> <result property="reduceReason" column="REDUCE_REASON"/>
<result property="exportFundFlag" column="EXPORT_FUND_FLAG"/>
</resultMap> </resultMap>
<!--tDispatchInfo 社保花名册数据查询--> <!--tDispatchInfo 社保花名册数据查询-->
<select id="getSocialRecordRosterList" resultMap="socialHandleExportMap"> <select id="getSocialRecordRosterList" resultMap="socialHandleExportMap">
...@@ -1023,10 +1025,21 @@ ...@@ -1023,10 +1025,21 @@
s.UNIT_BIGAILMENT_MONEY, s.UNIT_BIGAILMENT_MONEY,
s.PERSONAL_BIGAILMENT_MONEY, s.PERSONAL_BIGAILMENT_MONEY,
a.TRUST_REMARK, a.TRUST_REMARK,
a.REDUCE_REASON a.REDUCE_REASON,
a.EXPORT_SOCIAL_FLAG
FROM t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id
<include refid="where_getSocialRecordRoster"/> <include refid="where_getSocialRecordRoster"/>
</select> </select>
<update id="updateSocialRecords">
update
FROM t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id
set a.EXPORT_FUND_FLAG = 1
<include refid="where_getSocialRecordRoster"/>
</update>
<!--tDispatchInfo 社保花名册数据查询count--> <!--tDispatchInfo 社保花名册数据查询count-->
<select id="getSocialRecordRosterListCount" resultType="java.lang.Integer"> <select id="getSocialRecordRosterListCount" resultType="java.lang.Integer">
SELECT SELECT
...@@ -1034,6 +1047,8 @@ ...@@ -1034,6 +1047,8 @@
( (
SELECT SELECT
a.id a.id
FROM t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id
<include refid="where_getSocialRecordRoster"/>) a <include refid="where_getSocialRecordRoster"/>) a
</select> </select>
...@@ -1041,14 +1056,18 @@ ...@@ -1041,14 +1056,18 @@
<select id="getTDispatchSocialHandlePage" resultMap="dispatchPageMap"> <select id="getTDispatchSocialHandlePage" resultMap="dispatchPageMap">
SELECT SELECT
<include refid="Base_Column_List"/>, <include refid="Base_Column_List"/>,
a.SOCIAL_HOUSEHOLD_NAME a.SOCIAL_HOUSEHOLD_NAME,a.EXPORT_SOCIAL_FLAG
FROM t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id
<include refid="where_getSocialRecordRoster"/> <include refid="where_getSocialRecordRoster"/>
</select> </select>
<!--tDispatchInfo 公积金办理数据查询--> <!--tDispatchInfo 公积金办理数据查询-->
<select id="getTDispatchFundHandlePage" resultMap="dispatchPageMap"> <select id="getTDispatchFundHandlePage" resultMap="dispatchPageMap">
SELECT SELECT
<include refid="Base_Column_List"/>, <include refid="Base_Column_List"/>,
a.PROVIDENT_HOUSEHOLD_NAME a.PROVIDENT_HOUSEHOLD_NAME,a.EXPORT_FUND_FLAG
FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
<include refid="where_getFundRecord"/> <include refid="where_getFundRecord"/>
</select> </select>
...@@ -1057,6 +1076,8 @@ ...@@ -1057,6 +1076,8 @@
SELECT SELECT
<include refid="Base_Column_List"/>, <include refid="Base_Column_List"/>,
a.PROVIDENT_HOUSEHOLD_NAME a.PROVIDENT_HOUSEHOLD_NAME
FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
<include refid="where_getFundRecord"/> <include refid="where_getFundRecord"/>
</select> </select>
...@@ -1066,6 +1087,8 @@ ...@@ -1066,6 +1087,8 @@
count(1) from count(1) from
(SELECT (SELECT
a.id a.id
FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
<include refid="where_getFundRecord"/>) a <include refid="where_getFundRecord"/>) a
</select> </select>
<!--tDispatchInfo 公积金变更清册查询--> <!--tDispatchInfo 公积金变更清册查询-->
...@@ -1095,9 +1118,16 @@ ...@@ -1095,9 +1118,16 @@
a.TRUST_REMARK, a.TRUST_REMARK,
a.LEAVE_DATE, a.LEAVE_DATE,
a.REDUCE_REASON a.REDUCE_REASON
FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
<include refid="where_getFundRecord"/> <include refid="where_getFundRecord"/>
</select> </select>
<update id="updateFundRecords">
update t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
set a.EXPORT_SOCIAL_FLAG = 1
<include refid="where_getFundRecord"/>
</update>
<!--tDispatchInfo 公积金补交清册--> <!--tDispatchInfo 公积金补交清册-->
<select id="getFundSupplementaryRecords" resultMap="fundSupplementaryMap"> <select id="getFundSupplementaryRecords" resultMap="fundSupplementaryMap">
SELECT SELECT
...@@ -1109,11 +1139,11 @@ ...@@ -1109,11 +1139,11 @@
f.UNIT_PROVIDENT_FEE, f.UNIT_PROVIDENT_FEE,
f.PERSONAL_PROVIDENT_FEE, f.PERSONAL_PROVIDENT_FEE,
f.EMP_NAME f.EMP_NAME
FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
<include refid="where_getFundRecord"/> <include refid="where_getFundRecord"/>
</select> </select>
<sql id="where_getSocialRecordRoster"> <sql id="where_getSocialRecordRoster">
FROM t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id
<where> <where>
s.DELETE_FLAG = 0 s.DELETE_FLAG = 0
<if test="idsStr != null and idsStr.size > 0"> <if test="idsStr != null and idsStr.size > 0">
...@@ -1227,6 +1257,9 @@ ...@@ -1227,6 +1257,9 @@
<if test="tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"> <if test="tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''">
${tDispatchInfo.authSql} ${tDispatchInfo.authSql}
</if> </if>
<if test="tDispatchInfo.exportSocialFlag != null and tDispatchInfo.exportSocialFlag.trim() != ''">
AND a.EXPORT_SOCIAL_FLAG = ${tDispatchInfo.exportSocialFlag}
</if>
</if> </if>
group by a.id group by a.id
order by a.APPLY_NO desc order by a.APPLY_NO desc
...@@ -1234,8 +1267,6 @@ ...@@ -1234,8 +1267,6 @@
</sql> </sql>
<sql id="where_getFundRecord"> <sql id="where_getFundRecord">
FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id
<where> <where>
a.DELETE_FLAG = 0 a.DELETE_FLAG = 0
<if test="idsStr != null and idsStr.size > 0"> <if test="idsStr != null and idsStr.size > 0">
...@@ -1356,6 +1387,9 @@ ...@@ -1356,6 +1387,9 @@
<if test="tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"> <if test="tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''">
${tDispatchInfo.authSql} ${tDispatchInfo.authSql}
</if> </if>
<if test="tDispatchInfo.exportFundFlag != null and tDispatchInfo.exportFundFlag.trim() != ''">
AND a.EXPORT_FUND_FLAG = ${tDispatchInfo.exportFundFlag}
</if>
</if> </if>
group by a.id group by a.id
order by a.APPLY_NO desc order by a.APPLY_NO desc
...@@ -1366,4 +1400,11 @@ ...@@ -1366,4 +1400,11 @@
<select id="getMaxDispatchCode" resultType="java.lang.String"> <select id="getMaxDispatchCode" resultType="java.lang.String">
SELECT ifnull(max(right(e.APPLY_NO,4)),0) APPLY_NO FROM t_dispatch_info e where e.DELETE_FLAG = 0 and e.CREATE_TIME>DATE_FORMAT(now(),'%Y-%m-%d') SELECT ifnull(max(right(e.APPLY_NO,4)),0) APPLY_NO FROM t_dispatch_info e where e.DELETE_FLAG = 0 and e.CREATE_TIME>DATE_FORMAT(now(),'%Y-%m-%d')
</select> </select>
<update id="updateExportSocialFlagById">
update t_dispatch_info a set a.EXPORT_SOCIAL_FLAG = 1 WHERE a.id = #{id}
</update>
<update id="updateExportFundFlagById">
update t_dispatch_info a set a.EXPORT_FUND_FLAG = 1 WHERE a.id = #{id}
</update>
</mapper> </mapper>
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