|
|
@@ -105,7 +105,7 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService {
|
|
|
//生成商家id
|
|
|
String merchantId = generateMerchantId();
|
|
|
//生成店铺id
|
|
|
- String sequence = generateStoreSequence(merchantId);
|
|
|
+ String sequence = generateStoreSequence();
|
|
|
fsStore.setMerchantId(merchantId);
|
|
|
fsStore.setStoreSeq(sequence);
|
|
|
fsStoreMapper.insertFsStore(fsStore);
|
|
|
@@ -134,12 +134,12 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService {
|
|
|
* 生成店铺序号:年月日 + 当天第几家店
|
|
|
* 格式:202510180001
|
|
|
*/
|
|
|
- public String generateStoreSequence(String merchantId) {
|
|
|
+ public String generateStoreSequence() {
|
|
|
// 获取当天日期
|
|
|
String datePart = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd"));
|
|
|
|
|
|
// 查询当天已生成的店铺数量
|
|
|
- Long todayCount = fsStoreMapper.countByStoreSeqPrefix(merchantId, datePart);
|
|
|
+ Long todayCount = fsStoreMapper.countByStoreSeqPrefix(datePart);
|
|
|
|
|
|
// 生成序号 (从1开始)
|
|
|
Long sequence = (todayCount == null) ? 1L : todayCount + 1;
|