wangzhuo 2 лет назад
Родитель
Сommit
5e771b0fe7

+ 6 - 0
blade-service-api/blade-sales-part-api/src/main/java/org/springblade/salesPart/entity/PjProductLaunch.java

@@ -193,6 +193,12 @@ public class PjProductLaunch implements Serializable {
 	private String sharedCompany;
 
 	/**
+	 * 共享公司list(用于查询)
+	 */
+	@TableField(exist = false)
+	private String sharedCompanyList;
+
+	/**
 	 * 附件明细集合
 	 */
 	@TableField(exist = false)

+ 5 - 2
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/corps/mapper/CorpsDescMapper.xml

@@ -69,10 +69,10 @@
             and salesman_name like CONCAT(CONCAT('%', #{corpsDesc.salesmanName}), '%')
         </if>
         <if test="corpsDesc.tel!=null and corpsDesc.tel != ''">
-            and tel = #{corpsDesc.tel}
+            and tel like CONCAT(CONCAT('%', #{corpsDesc.tel}), '%')
         </if>
         <if test="corpsDesc.remarks!=null and corpsDesc.remarks != ''">
-            and remarks = #{corpsDesc.remarks}
+            and remarks like CONCAT(CONCAT('%', #{corpsDesc.remarks}), '%')
         </if>
         <if test="corpsDesc.tenantId!=null and corpsDesc.tenantId != ''">
             and tenant_id = #{corpsDesc.tenantId}
@@ -86,6 +86,9 @@
         <if test="corpsDesc.status!=null and corpsDesc.status != ''">
             and status = #{corpsDesc.status}
         </if>
+        <if test="corpsDesc.enableOrNot != null and corpsDesc.enableOrNot != ''">
+            and enable_or_not = #{corpsDesc.enableOrNot}
+        </if>
         <if test='corpsDesc.typeList !=null and corpsDesc.typeList.size>0'>
             and id in (
             SELECT

+ 1 - 2
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/goods/controller/GoodsDescController.java

@@ -310,8 +310,7 @@ public class GoodsDescController extends BladeController {
 	public R<List<PjGoodsDesc>> goodsListAll(PjGoodsDesc goods) {
 		LambdaQueryWrapper<PjGoodsDesc> lambdaQueryWrapper = new LambdaQueryWrapper<>();
 		lambdaQueryWrapper.eq(PjGoodsDesc::getTenantId, AuthUtil.getTenantId())
-			.eq(PjGoodsDesc::getIsDeleted, 0)
-			.eq(PjGoodsDesc::getSalesCompanyId, AuthUtil.getDeptId());
+			.eq(PjGoodsDesc::getIsDeleted, 0);
 		if (ObjectUtil.isNotEmpty(goods.getCname())){//商品名称
 			lambdaQueryWrapper.and(i -> i.like(PjGoodsDesc::getCname, goods.getCname()).or().like(PjGoodsDesc::getCnameInt, goods.getCname()));
 		}

+ 2 - 2
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/productLaunch/controller/ProductLaunchController.java

@@ -98,9 +98,9 @@ public class ProductLaunchController extends BladeController {
 			.eq(PjProductLaunch::getIsDeleted, 0)
 			.eq(PjProductLaunch::getBillType, productLaunch.getBillType())
 			.eq(PjProductLaunch::getSalesCompanyId, AuthUtil.getDeptId())//公司
-			.eq(ObjectUtil.isNotEmpty(productLaunch.getBrandId()), PjProductLaunch::getBrandId, productLaunch.getBrandId())
 			.like(ObjectUtils.isNotEmpty(productLaunch.getSpecificationAndModel()), PjProductLaunch::getSpecificationAndModel, productLaunch.getSpecificationAndModel())//规格型号
-			.in(ObjectUtil.isNotEmpty(productLaunch.getSourceCompanyId()), PjProductLaunch::getSourceCompanyId, productLaunch.getSourceCompanyId());//来源公司
+			.eq(ObjectUtil.isNotEmpty(productLaunch.getUpAndDownShelves()), PjProductLaunch::getUpAndDownShelves, productLaunch.getUpAndDownShelves())//上下架
+			.in(ObjectUtil.isNotEmpty(productLaunch.getSharedCompanyList()), PjProductLaunch::getSharedCompanyList, productLaunch.getSharedCompanyList());//共享公司
 		if (ObjectUtil.isNotEmpty(productLaunch.getCname())){
 			lambdaQueryWrapper.and(i -> i.like(PjProductLaunch::getCname, productLaunch.getCname()).or().like(PjProductLaunch::getCnameInt, productLaunch.getCname()));
 		}

+ 1 - 0
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/productLaunch/service/impl/ProductLaunchServiceImpl.java

@@ -309,6 +309,7 @@ public class ProductLaunchServiceImpl extends ServiceImpl<ProductLaunchMapper, P
 				productLaunch.setId(one.getId());
 				productLaunch.setUpdateUser(AuthUtil.getUserId());
 				productLaunch.setUpdateTime(new Date());
+				productLaunch.setSharedCompany(one.getSharedCompany());
 				baseMapper.updateById(productLaunch);
 			}
 		});