Commit 5ac704a1 by 翁国栋

8小时后台--

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