|
|
@@ -20,6 +20,7 @@ import com.fs.hisStore.domain.StoreLoginUserScrm;
|
|
|
import com.fs.hisStore.param.FsStoreProductAddEditParam;
|
|
|
import com.fs.hisStore.service.IFsStoreProductAttrScrmService;
|
|
|
import com.fs.hisStore.service.IFsStoreProductScrmService;
|
|
|
+import com.fs.hisStore.utils.StoreAuditLogUtil;
|
|
|
import com.fs.hisStore.utils.UserUtil;
|
|
|
import com.fs.hisStore.vo.FsStoreProductListVO;
|
|
|
import com.fs.store.vo.FsStoreProductStoreExcelVO;
|
|
|
@@ -28,6 +29,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
@@ -51,6 +53,9 @@ public class FsStoreProductScrmController extends BaseController
|
|
|
@Autowired
|
|
|
private TokenServiceScrm tokenService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private StoreAuditLogUtil storeAuditLogUtil;
|
|
|
+
|
|
|
/**
|
|
|
* 查询商品列表
|
|
|
*/
|
|
|
@@ -199,4 +204,12 @@ public TableDataInfo list(FsStoreProductScrm fsStoreProduct)
|
|
|
return fsStoreProductService.addOrEdit(fsStoreProduct);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品审核日志
|
|
|
+ * */
|
|
|
+ @GetMapping("/auditLog")
|
|
|
+ public R auditLog(@RequestParam("productId") String productId){
|
|
|
+ return R.ok().put("auditLog",storeAuditLogUtil.selectOperLogByMainId(Long.valueOf(productId),"商品"));
|
|
|
+ }
|
|
|
+
|
|
|
}
|