Commit 0803bbc7 by 翁国栋 Committed by 284718418@qq.com

8小时后台--

修改投保条件为不同月份可重复投递一个人
parent 8cbd468e
......@@ -18,6 +18,7 @@ import org.apache.commons.codec.digest.DigestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
......
......@@ -386,21 +386,31 @@
</select>
<!--根据id数组查询员工-->
<select id="selectListByIds" resultType="cn.timer.api.bean.insure.InsureUser">
<select id="selectListByIds" resultMap="insureUserMap">
SELECT
*
FROM insure_user
WHERE id IN
<where>
<if test="policyId ==null or policyId ==0">
user_id IN
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</if>
<if test="policyId !=null and policyId > 0">
id IN
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
<if test="policyId!=null and policyId !=''">
</if>
<if test="policyId!=null and policyId >0">
and policy_id =#{policyId}
</if>
<if test="createTime!=null and createTime !=''">
and date_format(create_time,'%Y-%m') = #{createTime}
</if>
and status = 1 and insure_status = 1
</where>
</select>
<!--根据id数组查询员工-->
......
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