| | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonPage; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.video.common.util.UtilNumber; |
| | | import com.ycl.common.util.UtilNumber; |
| | | import com.ycl.dto.store.UmsStoreInfoParam; |
| | | import com.ycl.entity.store.StoreInfo; |
| | | import com.ycl.entity.store.StoreScore; |
| | |
| | | @LogSave(operationType = "门店管理", contain = "查询门店") |
| | | public CommonResult<CommonPage<StoreInfoVO>> list(@RequestParam(value = "keyword", required = false) String keyword, |
| | | @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, |
| | | @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { |
| | | Page<StoreInfoVO> storeInfoPage = storeInfoService.list(keyword, pageSize, pageNum); |
| | | @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, |
| | | @RequestParam(value = "status", required = false) String status |
| | | ) { |
| | | Page<StoreInfoVO> storeInfoPage = storeInfoService.list(keyword, pageSize, pageNum,status); |
| | | return CommonResult.success(CommonPage.restPage(storeInfoPage)); |
| | | } |
| | | |
| | |
| | | .description(umsStoreInfoParam.getDescription()) |
| | | .videoId(umsStoreInfoParam.getRelationVideo()) |
| | | .storeScore(100.0) |
| | | .status(umsStoreInfoParam.getStatus()) |
| | | .build(); |
| | | boolean success = storeInfoService.save(storeInfo); |
| | | if (success) { |