feature:手工添加客户信息查询添加entList 参数

release
gaorl 2 years ago
parent ac54e2b8cd
commit 653fd3b408
  1. 4
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/dao/BuyerMapper.java
  2. 2
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java
  3. 17
      order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml
  4. 4
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/controller/BuyerController.java

@ -78,7 +78,9 @@ public interface BuyerMapper {
*/
List<BuyerEntity> selectBuyer(@Param("purchaseName") String purchaseName,
@Param("buyerCode") String buyerCode,
@Param("shList") List<String> shList);
@Param("shList") List<String> shList,
@Param("entList") List<String> entList
);
/**
* 删除

@ -101,7 +101,7 @@ public class BuyerServiceImpl implements BuyerService {
log.info("{}购方信息模糊查询开始,参数为 {}", LOGGER_MSG, purchaseName);
List<BuyerEntity> dataList;
log.info("{}购方信息模糊查询调用本地数据库开始。。。", LOGGER_MSG);
dataList = buyerMapper.selectBuyer(purchaseName, buyerCode, shList);
dataList = buyerMapper.selectBuyer(purchaseName, buyerCode, shList,entList);
if (dataList != null && dataList.size() > 0) {
return dataList;
} else {

@ -951,6 +951,23 @@
</foreach>
</if>
<if test="entList != null and entList.size() == 0">
and ent_id = ''
</if>
<if test="entList != null and entList.size() == 1">
and ent_id =
<foreach collection="entList" index="index" item="item">
#{item}
</foreach>
</if>
<if test="entList != null and entList.size() > 1">
and ent_id in
<foreach collection="entList" index="index" item="item"
open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="buyerCode != null and buyerCode != ''">
and buyer_code = #{buyerCode,jdbcType=VARCHAR}
</if>

@ -325,7 +325,9 @@ public class BuyerController {
@PostMapping("/queryBuyerInfoList")
@ApiOperation(value = "购方信息模糊查询", notes = "购方信息管理-购方信息模糊查询")
@SysLog(operation = "购方信息模糊查询", operationDesc = "购方信息模糊查询操作", key = "购方信息管理")
public R queryBuyerInfoList(@RequestParam String purchaseName, @RequestParam String xhfNsrsbh, @ApiParam(name = "entList", value = "数据组织Id数组", required = false) @RequestParam(value = "entList", required = false) String entList) {
public R queryBuyerInfoList(@RequestParam String purchaseName,
@RequestParam String xhfNsrsbh,
@ApiParam(name = "entList", value = "数据组织Id数组", required = false) @RequestParam(value = "entList", required = false) String entList) {
if (StringUtils.isBlank(xhfNsrsbh)) {
return R.error();
}

Loading…
Cancel
Save