霸王餐修改
This commit is contained in:
parent
be313b0de9
commit
ee49017b41
|
|
@ -7,6 +7,7 @@ import com.czg.account.dto.shopuser.ShopUserSummaryDTO;
|
|||
import com.czg.account.entity.ShopUser;
|
||||
import com.czg.account.service.ShopUserService;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.annotation.SaStaffCheckPermission;
|
||||
import com.czg.enums.ShopUserFlowBizEnum;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
|
|
@ -95,6 +96,7 @@ public class ShopUserController {
|
|||
*
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaStaffCheckPermission("yun_xu_xiu_gai_hui_yuan_yu_e")
|
||||
@SaAdminCheckPermission("shopUser:editFlow")
|
||||
@PutMapping("/money")
|
||||
public CzgResult<Boolean> editMoney(@RequestBody @Validated ShopUserMoneyEditDTO shopUserMoneyEditDTO) {
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public class FreeDineConfig implements Serializable {
|
|||
/**
|
||||
* 使用类型 dine-in店内 takeout 自取 post快递,takeaway外卖
|
||||
*/
|
||||
private String useType;
|
||||
// private String useType;
|
||||
|
||||
/**
|
||||
* 门店id
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ public class FreeDineConfigServiceImpl extends ServiceImpl<FreeDineConfigMapper,
|
|||
throw new ApiNotPrintException("霸王餐信息未配置");
|
||||
}
|
||||
BeanUtil.copyProperties(freeDineConfigEditDTO, config);
|
||||
if (freeDineConfigEditDTO.getUseType() != null && !freeDineConfigEditDTO.getUseType().isEmpty()) {
|
||||
config.setUseType(JSONObject.toJSONString(freeDineConfigEditDTO.getUseType()));
|
||||
}
|
||||
// if (freeDineConfigEditDTO.getUseType() != null && !freeDineConfigEditDTO.getUseType().isEmpty()) {
|
||||
// config.setUseType(JSONObject.toJSONString(freeDineConfigEditDTO.getUseType()));
|
||||
// }
|
||||
return updateById(config);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue