|
|
|
|
@ -7,6 +7,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import jakarta.validation.Valid; |
|
|
|
|
|
|
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
import org.springblade.core.secure.annotation.IsAdmin; |
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
@ -125,6 +126,7 @@ public class OemMeritsController extends BladeController { |
|
|
|
|
@PostMapping("/applyOemMerits") |
|
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
|
@Operation(summary = "外协绩效申请", description = "") |
|
|
|
|
@ApiLog("外协绩效 申请") |
|
|
|
|
public R applyOemMerits(@Valid @RequestBody ApplyOemMeritsSave applyOemMeritsSave) { |
|
|
|
|
String dateStr = applyOemMeritsSave.getDate(); |
|
|
|
|
List<OemMeritsEntity> oemMeritsEntities = applyOemMeritsSave.getOemMeritsEntities(); |
|
|
|
|
@ -138,6 +140,7 @@ public class OemMeritsController extends BladeController { |
|
|
|
|
@PostMapping("/maintenance") |
|
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
|
@Operation(summary = "维护厂家绩效", description = "") |
|
|
|
|
@ApiLog("厂家绩效 维护") |
|
|
|
|
public R maintenance(@Valid @RequestBody MaintenanceSave maintenanceSave) { |
|
|
|
|
maintenanceSave.setStatus(OemMeritsEntity.QUALITY_IN); |
|
|
|
|
return mesOemMeritsService.maintenance(maintenanceSave); |
|
|
|
|
@ -150,6 +153,7 @@ public class OemMeritsController extends BladeController { |
|
|
|
|
@PostMapping("/proofread") |
|
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
|
@Operation(summary = "校对厂家绩效", description = "") |
|
|
|
|
@ApiLog("厂家绩效 校对") |
|
|
|
|
public R proofread(@Valid @RequestBody ProofreadSave proofreadSave) { |
|
|
|
|
proofreadSave.setStatus(OemMeritsEntity.QUALITY_OK); |
|
|
|
|
return mesOemMeritsService.proofread(proofreadSave); |
|
|
|
|
@ -171,6 +175,7 @@ public class OemMeritsController extends BladeController { |
|
|
|
|
@PostMapping("/submitData") |
|
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
|
@Operation(summary = "厂家绩效评审保存", description = "") |
|
|
|
|
@ApiLog("厂家绩效 评审") |
|
|
|
|
public R submitData(@Valid @RequestBody List<OemMeritsEntity> oemMeritsEntities) { |
|
|
|
|
return mesOemMeritsService.submitData(oemMeritsEntities); |
|
|
|
|
} |
|
|
|
|
@ -181,6 +186,7 @@ public class OemMeritsController extends BladeController { |
|
|
|
|
@PostMapping("/processSubmit") |
|
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
|
@Operation(summary = "厂家绩效审核保存", description = "") |
|
|
|
|
@ApiLog("厂家绩效 审核") |
|
|
|
|
public R processSubmit(@Valid @RequestBody List<OemMeritsEntity> oemMeritsEntities) { |
|
|
|
|
return mesOemMeritsService.processSubmit(oemMeritsEntities); |
|
|
|
|
} |
|
|
|
|
|