获取清台配置信息
This commit is contained in:
@@ -103,11 +103,11 @@ public class ShopTableController {
|
|||||||
public CzgResult<Boolean> editBatch(@RequestBody @Validated ShopTableEditBatchDTO shopTableDTO) {
|
public CzgResult<Boolean> editBatch(@RequestBody @Validated ShopTableEditBatchDTO shopTableDTO) {
|
||||||
UpdateChain<ShopTable> query = shopTableService.updateChain().eq(ShopTable::getShopId, StpKit.USER.getShopId());
|
UpdateChain<ShopTable> query = shopTableService.updateChain().eq(ShopTable::getShopId, StpKit.USER.getShopId());
|
||||||
if (shopTableDTO.getAutoClearTime() != null) {
|
if (shopTableDTO.getAutoClearTime() != null) {
|
||||||
query.eq(ShopTable::getAutoClearTime, shopTableDTO.getAutoClearTime());
|
query.set(ShopTable::getAutoClearTime, shopTableDTO.getAutoClearTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shopTableDTO.getAutoClear() != null) {
|
if (shopTableDTO.getAutoClear() != null) {
|
||||||
query.eq(ShopTable::getAutoClear, shopTableDTO.getAutoClear());
|
query.set(ShopTable::getAutoClear, shopTableDTO.getAutoClear());
|
||||||
}
|
}
|
||||||
return CzgResult.success(query.update());
|
return CzgResult.success(query.update());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user