fix
This commit is contained in:
@@ -192,6 +192,8 @@ public enum ErrorCodeEnum {
|
|||||||
|
|
||||||
TIME_NULL_FALSE(109013, "有时间为空", null),
|
TIME_NULL_FALSE(109013, "有时间为空", null),
|
||||||
|
|
||||||
|
UNISSUED_STATEMENT_2(109014, "该门店已发布账单", null),
|
||||||
|
|
||||||
|
|
||||||
INSERT_OPENING_OPERATION_PLAN_AUDIT_FALSE(103001,"插入运营方案审核信息失败",null),
|
INSERT_OPENING_OPERATION_PLAN_AUDIT_FALSE(103001,"插入运营方案审核信息失败",null),
|
||||||
INSERT_OPENING_OPERATION_PLAN_FALSE(103002,"插入运营方案失败",null),
|
INSERT_OPENING_OPERATION_PLAN_FALSE(103002,"插入运营方案失败",null),
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
|
|||||||
franchiseFeeDO.setId(request.getId());
|
franchiseFeeDO.setId(request.getId());
|
||||||
franchiseFeeMapper.updateByPrimaryKeySelective(franchiseFeeDO);
|
franchiseFeeMapper.updateByPrimaryKeySelective(franchiseFeeDO);
|
||||||
} else {
|
} else {
|
||||||
|
FranchiseFeeDO isExist = franchiseFeeMapper.selectByShopId(request.getShopId());
|
||||||
|
if (Objects.nonNull(isExist)){
|
||||||
|
throw new ServiceException(ErrorCodeEnum.UNISSUED_STATEMENT_2);
|
||||||
|
}
|
||||||
franchiseFeeMapper.insertSelective(franchiseFeeDO);
|
franchiseFeeMapper.insertSelective(franchiseFeeDO);
|
||||||
}
|
}
|
||||||
ShopInfoDO shopInfoDO = shopInfoMapper.selectByPrimaryKey(request.getShopId());
|
ShopInfoDO shopInfoDO = shopInfoMapper.selectByPrimaryKey(request.getShopId());
|
||||||
|
|||||||
Reference in New Issue
Block a user