Commit f98534e7 by 翁国栋

运营后台--

保全增员
parent bd909e43
...@@ -3,6 +3,7 @@ package cn.timer.api.dao.insure; ...@@ -3,6 +3,7 @@ package cn.timer.api.dao.insure;
import cn.timer.api.bean.insure.InsurePolicy; import cn.timer.api.bean.insure.InsurePolicy;
import cn.timer.api.dto.insure.PolicyDto; import cn.timer.api.dto.insure.PolicyDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
...@@ -17,5 +18,6 @@ import java.util.List; ...@@ -17,5 +18,6 @@ import java.util.List;
@Repository @Repository
public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> { public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
public List<PolicyDto> policyList(); public List<PolicyDto> policyList();
PolicyDto getPolicyDetail(@Param("id")Integer id);
} }
...@@ -19,6 +19,7 @@ import java.util.Date; ...@@ -19,6 +19,7 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class InsureDto { public class InsureDto {
private String id;
private String orgCode;/*劳动合同*/ private String orgCode;/*劳动合同*/
private String companyName;/*用工单位实际工作单位*/ private String companyName;/*用工单位实际工作单位*/
private String[] userIds; private String[] userIds;
......
...@@ -30,5 +30,6 @@ public class PolicyDto { ...@@ -30,5 +30,6 @@ public class PolicyDto {
private String insuredName; private String insuredName;
private String benefitBasicPlan; private String benefitBasicPlan;
private String price; private String price;
private String orgCode;
} }
...@@ -74,4 +74,7 @@ public class YgQueryDto extends Page { ...@@ -74,4 +74,7 @@ public class YgQueryDto extends Page {
@ApiModelProperty(value = "性别", example = "1") @ApiModelProperty(value = "性别", example = "1")
private Integer sex; private Integer sex;
@ApiModelProperty(value="是否已购买保险",example = "0")
private Integer isInsure;
} }
...@@ -271,4 +271,22 @@ ...@@ -271,4 +271,22 @@
</select> </select>
<select id="getPolicyDetail" resultType="cn.timer.api.dto.insure.PolicyDto">
SELECT
ip.id as id,
ip.scheme_name as schemeName,
ip.policy_date_start as policyDateStart,
ip.policy_date_end as policyDateEnd,
ip.policy_no as policyNo,
ip.org_code as orgCode,
iu.insured_name as insuredName,
iu.benefit_basic_plan as benefitBasicPlan
FROM
insure_policy ip
LEFT JOIN insure_user iu ON iu.policy_no = ip.policy_no
WHERE
ip.id = #{id}
LIMIT 1
</select>
</mapper> </mapper>
...@@ -240,7 +240,8 @@ ...@@ -240,7 +240,8 @@
a.phone phone, a.phone phone,
a.job_status jobStatus, a.job_status jobStatus,
a.head_url headUrl, a.head_url headUrl,
a.sex sex a.sex sex,
a.is_insure isInsure
FROM FROM
yggl_main_emp a yggl_main_emp a
LEFT JOIN zzgl_bmgw_m b ON a.bmgw_id = b.id LEFT JOIN zzgl_bmgw_m b ON a.bmgw_id = b.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