Commit 1bac909d authored by hongguangwu's avatar hongguangwu

Merge remote-tracking branch 'origin/develop' into develop

parents 1863ccc3 0ecdbe6d
...@@ -479,7 +479,7 @@ public class TInsuranceDetailController { ...@@ -479,7 +479,7 @@ public class TInsuranceDetailController {
*/ */
@Operation(summary = "根据身份证查询所有的商险列表", description = "根据身份证查询所有的商险列表") @Operation(summary = "根据身份证查询所有的商险列表", description = "根据身份证查询所有的商险列表")
@GetMapping("/getInsuranceListByIdCard") @GetMapping("/getInsuranceListByIdCard")
public R<IPage<InsuranceListByIdCardVo>> getInsuranceListByIdCard(Page page, String idCard) { public R<IPage<InsuranceListByIdCardVo>> getInsuranceListByIdCard(Page page, String idCard,String deptNo) {
return new R<>(tInsuranceDetailService.getInsuranceListByIdCard(page, idCard)); return new R<>(tInsuranceDetailService.getInsuranceListByIdCard(page, idCard,deptNo));
} }
} }
...@@ -186,7 +186,7 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> { ...@@ -186,7 +186,7 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
* @date 2022-08-01 * @date 2022-08-01
* @return * @return
*/ */
IPage<InsuranceListByIdCardVo> getInsuranceListByIdCard(Page<TInsuranceDetail> page, @Param("idCard") String idCard); IPage<InsuranceListByIdCardVo> getInsuranceListByIdCard(Page<TInsuranceDetail> page, @Param("idCard") String idCard, @Param("deptNo")String deptNo);
List<TInsuranceDetail> selectListByempIdcardNo(String empIdcardNo); List<TInsuranceDetail> selectListByempIdcardNo(String empIdcardNo);
......
...@@ -330,6 +330,6 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> { ...@@ -330,6 +330,6 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
* @param * @param
* @return {@link R} * @return {@link R}
*/ */
IPage<InsuranceListByIdCardVo> getInsuranceListByIdCard(Page<TInsuranceDetail> page, String idCard); IPage<InsuranceListByIdCardVo> getInsuranceListByIdCard(Page<TInsuranceDetail> page, String idCard,String deptNo);
} }
...@@ -888,6 +888,7 @@ ...@@ -888,6 +888,7 @@
<where> <where>
1=1 1=1
AND EMP_IDCARD_NO = #{idCard} AND EMP_IDCARD_NO = #{idCard}
and DEPT_NO = #{deptNo}
</where> </where>
ORDER BY CREATE_TIME desc ORDER BY CREATE_TIME desc
</select> </select>
......
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