| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonPage; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.common.util.UtilNumber; |
| | |
| | | @ApiOperation(value = "添加门店信息") |
| | | @RequestMapping(value = "/add", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "门店管理",contain = "添加门店") |
| | | public CommonResult<StoreInfo> add(@Validated @RequestBody UmsStoreInfoParam umsStoreInfoParam) { |
| | | StoreInfo storeInfo = StoreInfo.builder() |
| | | .owner(umsStoreInfoParam.getOwner()) |
| | | .storeName(umsStoreInfoParam.getStorename()) |
| | | .contact(umsStoreInfoParam.getContact()) |
| | | .storeAddress(umsStoreInfoParam.getStoreaddr()) |
| | | .storePhoto(umsStoreInfoParam.getStorephoto()) |
| | | .idCardInfo(umsStoreInfoParam.getIdcardinfo()) |
| | | .storeNumber(utilNumber.createShopCode()) |
| | | .storeScore(umsStoreInfoParam.getStorescore()) |
| | | .type(umsStoreInfoParam.getType()) |
| | | .description(umsStoreInfoParam.getDescription()) |
| | | .build(); |