提交 7671441b authored 作者: 李秋林's avatar 李秋林

查询勤策门店,返回门店信息

上级 fb0b895b
...@@ -32,5 +32,9 @@ public class TemporaryActivityPlanQueryController { ...@@ -32,5 +32,9 @@ public class TemporaryActivityPlanQueryController {
return R.success(temporaryActivityPlanQueryService.findClockStoreList(temporaryActivityPlanVo)); return R.success(temporaryActivityPlanQueryService.findClockStoreList(temporaryActivityPlanVo));
} }
/**
* todo 小程序端促销员查询促销计划
*/
} }
...@@ -4,10 +4,7 @@ import com.wangxiaolu.promotion.pojo.user.vo.ClienteleStoreQueryVo; ...@@ -4,10 +4,7 @@ import com.wangxiaolu.promotion.pojo.user.vo.ClienteleStoreQueryVo;
import com.wangxiaolu.promotion.result.basedata.R; import com.wangxiaolu.promotion.result.basedata.R;
import com.wangxiaolu.promotion.service.user.QinCeClienteleDataQueryService; import com.wangxiaolu.promotion.service.user.QinCeClienteleDataQueryService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/** /**
* @author : liqiulin * @author : liqiulin
......
...@@ -82,9 +82,13 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao { ...@@ -82,9 +82,13 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao {
LambdaQueryWrapper<QinCeClienteleStoreDO> qw = builderQueryWrapper(storeWrapper); LambdaQueryWrapper<QinCeClienteleStoreDO> qw = builderQueryWrapper(storeWrapper);
// 指定字段查询 // 指定字段查询
qw.select(QinCeClienteleStoreDO::getQcId, qw.select(QinCeClienteleStoreDO::getQcId,
QinCeClienteleStoreDO::getStoreCode,
QinCeClienteleStoreDO::getStoreName, QinCeClienteleStoreDO::getStoreName,
QinCeClienteleStoreDO::getDealerId,
QinCeClienteleStoreDO::getDealersName,
QinCeClienteleStoreDO::getLineName,
QinCeClienteleStoreDO::getStoreAddr) QinCeClienteleStoreDO::getStoreAddr)
.last(" limit 100"); .last(" limit 50");
List<QinCeClienteleStoreDO> qinCeClienteleStoreDOS = qinCeClienteleStoreMapper.selectList(qw); List<QinCeClienteleStoreDO> qinCeClienteleStoreDOS = qinCeClienteleStoreMapper.selectList(qw);
List<QinCeClienteleStoreDto> storeDtos = transitionDtos(qinCeClienteleStoreDOS); List<QinCeClienteleStoreDto> storeDtos = transitionDtos(qinCeClienteleStoreDOS);
......
...@@ -16,6 +16,7 @@ import lombok.experimental.Accessors; ...@@ -16,6 +16,7 @@ import lombok.experimental.Accessors;
@Accessors(chain = true) @Accessors(chain = true)
public class QinCeClienteleStoreDto { public class QinCeClienteleStoreDto {
private String qcId; private String qcId;
private String storeCode;
private String storeName; private String storeName;
private String dealersName; private String dealersName;
private String dealerId; private String dealerId;
......
...@@ -23,6 +23,8 @@ public class ClienteleStoreQueryVo { ...@@ -23,6 +23,8 @@ public class ClienteleStoreQueryVo {
*/ */
private String storeNameVague; private String storeNameVague;
private String storeCode;
/** /**
* 默认查询有效数据 * 默认查询有效数据
* 门店删除状态。0:删除,1:正常:store_status = 1 * 门店删除状态。0:删除,1:正常:store_status = 1
......
...@@ -504,12 +504,12 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService { ...@@ -504,12 +504,12 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService {
StoreWrapper storeWrap = new StoreWrapper().setStoreCode(operVo.getStoreCode()); StoreWrapper storeWrap = new StoreWrapper().setStoreCode(operVo.getStoreCode());
QinCeClienteleStoreDto storeDto = qinCeClienteleStoreDao.getOneStore(storeWrap); QinCeClienteleStoreDto storeDto = qinCeClienteleStoreDao.getOneStore(storeWrap);
if (ObjectUtil.isEmpty(storeDto)) { // if (ObjectUtil.isEmpty(storeDto)) {
throw new ParamException(RCode.QINCE_STORE_CODE_ERROR); // throw new ParamException(RCode.QINCE_STORE_CODE_ERROR);
} // }
if (StringUtils.isAnyBlank(storeDto.getLineName(), storeDto.getDealersName(), storeDto.getDealerId())) { // if (StringUtils.isAnyBlank(storeDto.getLineName(), storeDto.getDealersName(), storeDto.getDealerId())) {
throw new ParamException(RCode.ACTIVITY_PLAN_EXECUTE_ERROR); // throw new ParamException(RCode.ACTIVITY_PLAN_EXECUTE_ERROR);
} // }
ManageEmployeeInfoDto empDto = manageEmployeeInfoDao.selectOne(new ManageEmployeeWrapper().setEmployeeNo(operVo.getEmployeeNo())); ManageEmployeeInfoDto empDto = manageEmployeeInfoDao.selectOne(new ManageEmployeeWrapper().setEmployeeNo(operVo.getEmployeeNo()));
LocalDate planDate = operVo.getDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); LocalDate planDate = operVo.getDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论