Merge #18 into master from cc_20251114_minor_req
fix:订货信息新增订货备注并同步主数据;门店编码变更推送新管家
* cc_20251114_minor_req: (11 commits squashed)
- fix:门店日营销数据
- fix:jackson反序列化配置忽略未定义字段
- fix:菜品市场数据新增字段
- fix:菜品市场数据新增字段
- Merge branch 'master' into cc_20251114_minor_req
# Conflicts:
#	coolstore-partner-model/src/main/java/com/cool/store/dto/recipe/RevenueDataDTO.java
#	coolstore-partner-model/src/main/java/com/cool/store/vo/recipe/RevenueDataVO.java
- fix:数据看板日营业数据字段修改
- fix:根据手机号获取门店列表 开放接口
- Merge branch 'refs/heads/master' into cc_20251114_minor_req
# Conflicts:
#	coolstore-partner-web/src/main/java/com/cool/store/controller/webb/OpenApiController.java
- fix:开店管理修改基本信息资料中门店编码发生变化时推送新管家
- fix:订货信息新增订货备注并同步主数据
- Merge branch 'refs/heads/master' into cc_20251114_minor_req
Signed-off-by: 王非凡 <accounts_67eba0c5fee9c49c80c8e2b4@mail.teambition.com>
Reviewed-by: 苏竹红 <570057076@qq.com>
Merged-by: 苏竹红 <570057076@qq.com>
CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/18
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
<result property="receivingUpdateTime" column="receiving_update_time" jdbcType="TIMESTAMP"/>
|
<result property="receivingUpdateTime" column="receiving_update_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="receivingCreateUser" column="receiving_create_user" jdbcType="VARCHAR"/>
|
<result property="receivingCreateUser" column="receiving_create_user" jdbcType="VARCHAR"/>
|
||||||
<result property="receivingUpdateUser" column="receiving_update_user" jdbcType="VARCHAR"/>
|
<result property="receivingUpdateUser" column="receiving_update_user" jdbcType="VARCHAR"/>
|
||||||
|
<result property="orderRemark" column="order_remark" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="base_colum_list">
|
<sql id="base_colum_list">
|
||||||
id, shop_id, xgj_vice_president, xgj_region_id,xgj_region_name,addresseeName, addressee_mobile, addressee_province, addressee_city,
|
id, shop_id, xgj_vice_president, xgj_region_id,xgj_region_name,addresseeName, addressee_mobile, addressee_province, addressee_city,
|
||||||
@@ -39,7 +40,7 @@
|
|||||||
warehouse_delivery_date, order_create_time, order_update_time, order_create_user, order_update_user,
|
warehouse_delivery_date, order_create_time, order_update_time, order_create_user, order_update_user,
|
||||||
receiving_firm_name, receiving_ms_bank_account, receiving_ms_bank_branch, bank_unionPay_account,
|
receiving_firm_name, receiving_ms_bank_account, receiving_ms_bank_branch, bank_unionPay_account,
|
||||||
receiving_create_time, receiving_update_time, receiving_create_user, receiving_update_user,
|
receiving_create_time, receiving_update_time, receiving_create_user, receiving_update_user,
|
||||||
declare_goods_type
|
declare_goods_type, order_remark
|
||||||
</sql>
|
</sql>
|
||||||
<insert id="batchInsertSpecific">
|
<insert id="batchInsertSpecific">
|
||||||
<foreach collection="list" item="item" index="index" separator=";">
|
<foreach collection="list" item="item" index="index" separator=";">
|
||||||
|
|||||||
@@ -121,4 +121,8 @@ public class OrderSysInfoDO {
|
|||||||
/** 订货方式,0先款后货、1先货后款 */
|
/** 订货方式,0先款后货、1先货后款 */
|
||||||
@Column(name = "order_type")
|
@Column(name = "order_type")
|
||||||
private Integer orderType;
|
private Integer orderType;
|
||||||
|
|
||||||
|
/** 订货备注 */
|
||||||
|
@Column(name = "order_remark")
|
||||||
|
private String orderRemark;
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,7 @@ import com.cool.store.enums.SignTypeEnum;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.hibernate.validator.constraints.Length;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
@@ -99,6 +100,10 @@ public class OrderSysInfoRequest {
|
|||||||
@ApiModelProperty("订货方式,0先款后货、1先货后款")
|
@ApiModelProperty("订货方式,0先款后货、1先货后款")
|
||||||
private Integer orderType;
|
private Integer orderType;
|
||||||
|
|
||||||
|
@ApiModelProperty("订货备注")
|
||||||
|
@Length(max = 200, message = "订货备注长度不能超过200")
|
||||||
|
private String orderRemark;
|
||||||
|
|
||||||
public OrderSysInfoDO toOrderSysInfoDO() {
|
public OrderSysInfoDO toOrderSysInfoDO() {
|
||||||
OrderSysInfoDO orderSysInfoDO = new OrderSysInfoDO();
|
OrderSysInfoDO orderSysInfoDO = new OrderSysInfoDO();
|
||||||
orderSysInfoDO.setShopId(this.shopId);
|
orderSysInfoDO.setShopId(this.shopId);
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ public class StoreMasterDTO {
|
|||||||
private Integer declareGoodsType;
|
private Integer declareGoodsType;
|
||||||
@ApiModelProperty("报送货日期 数组格式\"[{\"declareGoods\": \"\",\"deliverGoods\":\"\"}]\"")
|
@ApiModelProperty("报送货日期 数组格式\"[{\"declareGoods\": \"\",\"deliverGoods\":\"\"}]\"")
|
||||||
private String declareGoodsDate;
|
private String declareGoodsDate;
|
||||||
|
@ApiModelProperty("订货备注")
|
||||||
|
private String orderRemark;
|
||||||
|
|
||||||
@ApiModelProperty("营业时间")
|
@ApiModelProperty("营业时间")
|
||||||
private String businessHours;
|
private String businessHours;
|
||||||
|
|||||||
@@ -209,4 +209,7 @@ public class BuildInformationResponse {
|
|||||||
|
|
||||||
@ApiModelProperty("订货方式,0先款后货、1先货后款")
|
@ApiModelProperty("订货方式,0先款后货、1先货后款")
|
||||||
private Integer orderType;
|
private Integer orderType;
|
||||||
|
|
||||||
|
@ApiModelProperty("订货备注")
|
||||||
|
private String orderRemark;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,6 +214,7 @@ public class BuildInformationServiceImpl implements BuildInformationService {
|
|||||||
response.setReceivingMsBankBranch(orderSysInfoDO.getReceivingMsBankBranch());
|
response.setReceivingMsBankBranch(orderSysInfoDO.getReceivingMsBankBranch());
|
||||||
response.setBankUnionPayAccount(orderSysInfoDO.getBankUnionPayAccount());
|
response.setBankUnionPayAccount(orderSysInfoDO.getBankUnionPayAccount());
|
||||||
response.setOrderType(orderSysInfoDO.getOrderType());
|
response.setOrderType(orderSysInfoDO.getOrderType());
|
||||||
|
response.setOrderRemark(orderSysInfoDO.getOrderRemark());
|
||||||
WarehouseInfoDO warehouseInfoDO = warehouseInfoMapper.getByCode(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
|
WarehouseInfoDO warehouseInfoDO = warehouseInfoMapper.getByCode(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
|
||||||
if (Objects.nonNull(warehouseInfoDO)) {
|
if (Objects.nonNull(warehouseInfoDO)) {
|
||||||
response.setDeclareGoodsLogisticsWarehouseName(warehouseInfoDO.getWarehouseName());
|
response.setDeclareGoodsLogisticsWarehouseName(warehouseInfoDO.getWarehouseName());
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ public class OrderSysInfoServiceImpl implements OrderSysInfoService {
|
|||||||
orderSysInfoDO.setDeclareGoodsType(request.getDeclareGoodsType());
|
orderSysInfoDO.setDeclareGoodsType(request.getDeclareGoodsType());
|
||||||
orderSysInfoDO.setDeclareGoodsDate(request.getDeclareGoodsDate());
|
orderSysInfoDO.setDeclareGoodsDate(request.getDeclareGoodsDate());
|
||||||
orderSysInfoDO.setWarehouseDeliveryDate(request.getWarehouseDeliveryDate());
|
orderSysInfoDO.setWarehouseDeliveryDate(request.getWarehouseDeliveryDate());
|
||||||
|
orderSysInfoDO.setOrderRemark(request.getOrderRemark());
|
||||||
if (shopSubStageInfo.getShopSubStageStatus().equals(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_151.getShopSubStageStatus())) {
|
if (shopSubStageInfo.getShopSubStageStatus().equals(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_151.getShopSubStageStatus())) {
|
||||||
orderSysInfoDO.setOrderCreateTime(new Date());
|
orderSysInfoDO.setOrderCreateTime(new Date());
|
||||||
orderSysInfoDO.setOrderCreateUser(curUserId);
|
orderSysInfoDO.setOrderCreateUser(curUserId);
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ public class ShopServiceImpl implements ShopService {
|
|||||||
StoreService storeService;
|
StoreService storeService;
|
||||||
@Resource
|
@Resource
|
||||||
EnterpriseService enterpriseService;
|
EnterpriseService enterpriseService;
|
||||||
|
@Resource
|
||||||
|
ShopAccountService shopAccountService;
|
||||||
|
@Resource
|
||||||
|
PushService pushService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -444,6 +448,7 @@ public class ShopServiceImpl implements ShopService {
|
|||||||
ShopStageInfoDO shopSubStageInfo = shopStageInfoDAO.getShopSubStageInfo(request.getShopId(), ShopSubStageEnum.SHOP_STAGE_7);
|
ShopStageInfoDO shopSubStageInfo = shopStageInfoDAO.getShopSubStageInfo(request.getShopId(), ShopSubStageEnum.SHOP_STAGE_7);
|
||||||
//缴费阶段之后 加盟模式不能切换为直营店 直营店也不能切换为其他店
|
//缴费阶段之后 加盟模式不能切换为直营店 直营店也不能切换为其他店
|
||||||
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
|
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
|
||||||
|
String oldShopCode = shopInfo.getShopCode();
|
||||||
if (shopSubStageInfo.getShopSubStageStatus()>ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_70.getShopSubStageStatus()){
|
if (shopSubStageInfo.getShopSubStageStatus()>ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_70.getShopSubStageStatus()){
|
||||||
if (request.getJoinMode()!=shopInfo.getJoinMode()&&
|
if (request.getJoinMode()!=shopInfo.getJoinMode()&&
|
||||||
(request.getJoinMode()==JoinModeEnum.FLAGSHIP_STORE.getCode()||shopInfo.getJoinMode()==JoinModeEnum.FLAGSHIP_STORE.getCode())){
|
(request.getJoinMode()==JoinModeEnum.FLAGSHIP_STORE.getCode()||shopInfo.getJoinMode()==JoinModeEnum.FLAGSHIP_STORE.getCode())){
|
||||||
@@ -462,7 +467,17 @@ public class ShopServiceImpl implements ShopService {
|
|||||||
shopInfo.setFranchiseBrand(request.getFranchiseBrand());
|
shopInfo.setFranchiseBrand(request.getFranchiseBrand());
|
||||||
shopInfo.setStoreType(request.getStoreType());
|
shopInfo.setStoreType(request.getStoreType());
|
||||||
shopInfo.setManagerRegionId(request.getManagerRegionId());
|
shopInfo.setManagerRegionId(request.getManagerRegionId());
|
||||||
return shopInfoDAO.updateShopInfo(shopInfo);
|
Integer f = shopInfoDAO.updateShopInfo(shopInfo);
|
||||||
|
if (StringUtils.compare(request.getShopCode().trim(), oldShopCode) != 0) {
|
||||||
|
try {
|
||||||
|
log.info("门店编码发生修改,推送新管家");
|
||||||
|
ZxjpApiRequest data = shopAccountService.getData(request.getShopId(), DownSystemTypeEnum.XGJ);
|
||||||
|
pushService.pushDataToXGJ(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("推送新管家失败", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ public class SyncMainSysServerImpl implements SyncMainSysServer {
|
|||||||
storeMasterDTO.setDeclareGoodsLogisticsWarehouse(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
|
storeMasterDTO.setDeclareGoodsLogisticsWarehouse(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
|
||||||
storeMasterDTO.setDeclareGoodsType(Integer.valueOf(orderSysInfoDO.getDeclareGoodsType()));
|
storeMasterDTO.setDeclareGoodsType(Integer.valueOf(orderSysInfoDO.getDeclareGoodsType()));
|
||||||
storeMasterDTO.setDeclareGoodsDate(orderSysInfoDO.getDeclareGoodsDate());
|
storeMasterDTO.setDeclareGoodsDate(orderSysInfoDO.getDeclareGoodsDate());
|
||||||
|
storeMasterDTO.setOrderRemark(orderSysInfoDO.getOrderRemark());
|
||||||
}
|
}
|
||||||
LineInfoDO lineInfoDO = lineInfoDAO.getLineInfo(shopInfo.getLineId());
|
LineInfoDO lineInfoDO = lineInfoDAO.getLineInfo(shopInfo.getLineId());
|
||||||
StoreMasterDTO.SignerInfo signerInfo = new StoreMasterDTO.SignerInfo();
|
StoreMasterDTO.SignerInfo signerInfo = new StoreMasterDTO.SignerInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user