|
@@ -5,7 +5,6 @@ import com.fire.admin.annotation.FireOperationLog;
|
|
|
import com.fire.admin.request.SupplierPageParam;
|
|
|
import com.fire.admin.request.SupplierSetInvalidParam;
|
|
|
import com.fire.admin.service.SupplierService;
|
|
|
-import com.fire.common.constants.LogOperType;
|
|
|
import com.fire.common.constants.LogType;
|
|
|
import com.fire.dto.ChannelSupplier;
|
|
|
import com.fire.dto.response.BaseResponse;
|
|
@@ -44,8 +43,8 @@ public class ChannelSupplierRest {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/add")
|
|
|
- @ApiOperation(value = "新增供应商", notes = "supplier_add.py")
|
|
|
- @FireOperationLog(operation = LogType.SUPPLIER, description = LogOperType.ADD_OPER)
|
|
|
+ @ApiOperation(value = "添加供应商", notes = "supplier_add.py")
|
|
|
+ @FireOperationLog(description = "添加供应商",type = LogType.SUPPLIER)
|
|
|
public BaseResponse addSupplier(@RequestBody ChannelSupplier channelSupplier) {
|
|
|
supplierService.saveSupplier(channelSupplier);
|
|
|
return new BaseResponse();
|
|
@@ -53,7 +52,7 @@ public class ChannelSupplierRest {
|
|
|
|
|
|
@PostMapping("/update")
|
|
|
@ApiOperation(value = "修改供应商", notes = "supplier_update.py")
|
|
|
- @FireOperationLog(operation = LogType.SUPPLIER, description = LogOperType.UPDATE_OPER)
|
|
|
+ @FireOperationLog(description = "修改供应商",type = LogType.SUPPLIER)
|
|
|
public BaseResponse updateSupplierBySupplierId(@RequestBody ChannelSupplier channelSupplier) {
|
|
|
supplierService.updateSupplierById(channelSupplier);
|
|
|
return new BaseResponse();
|
|
@@ -61,7 +60,7 @@ public class ChannelSupplierRest {
|
|
|
|
|
|
@DeleteMapping("/delete/{supplierId}")
|
|
|
@ApiOperation(value = "删除供应商", notes = "supplier_delete.py")
|
|
|
- @FireOperationLog(operation = LogType.SUPPLIER, description = LogOperType.DELETE_OPER)
|
|
|
+ @FireOperationLog(description = "删除供应商",type = LogType.SUPPLIER)
|
|
|
public BaseResponse deleteSupplierBySupplierId(@PathVariable("supplierId") Long supplierId) {
|
|
|
supplierService.deleteSupplierAndChannelBySupplierId(supplierId);
|
|
|
return new BaseResponse();
|
|
@@ -69,7 +68,7 @@ public class ChannelSupplierRest {
|
|
|
|
|
|
@PutMapping("/setIsValid")
|
|
|
@ApiOperation(value = "供应商置无效/有效", notes = "set_invalid.py")
|
|
|
- @FireOperationLog(operation = LogType.SUPPLIER, description = LogOperType.SET_INVALID_OPER)
|
|
|
+ @FireOperationLog(description = "供应商置无效/有效",type = LogType.SUPPLIER)
|
|
|
public BaseResponse setInvalid(@RequestBody SupplierSetInvalidParam supplierSetInvalidParam) {
|
|
|
supplierService.setInvalid(supplierSetInvalidParam.getSupplierId(), supplierSetInvalidParam.getIsValid());
|
|
|
return new BaseResponse();
|