Commit 6f489f43 by 翁国栋 Committed by 284718418@qq.com

8小时后台,单人替换

parent 3b6431ad
......@@ -9,6 +9,7 @@ import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
......@@ -26,4 +27,6 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
List<PolicyDto> policyTotalList();
List<InsureUserDto> selectPlansListByorgCode(@Param("orgCode")Integer id);
List<InsurePolicy> selectPolicyListByStatus(@Param("date") Date date);
}
......@@ -25,6 +25,7 @@ public interface InsureUserMapper extends BaseMapper<InsureUser> {
List<InsureUser> selectListByIds(@Param("array")String[] ids);
List<InsureUserDto> selectPlansListByIds(@Param("array")String[] ids);
List<InsureUserDto> selectPlansListById(@Param("policyId")String id);
int updateInsure(@Param("array")Integer[] ids);
......
......@@ -347,4 +347,10 @@
iu.benefit_basic_plan,
iu.benefit_occupation_category
</select>
<select id="selectPolicyListByStatus" resultType="cn.timer.api.bean.insure.InsurePolicy">
select * from insure_policy
where status = 1 and
policy_date_end <![CDATA[ < ]]> #{date}
</select>
</mapper>
......@@ -378,4 +378,15 @@
group by benefit_basic_plan, benefit_occupation_category
</select>
<update id="updateInsure">
UPDATE insure_user
<set>
status = 2,
insure_status=2
</set>
WHERE policy_id IN
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</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