防重复
This commit is contained in:
parent
14bd9d1642
commit
1c01c7dc38
|
|
@ -11,6 +11,7 @@ import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||||
|
import com.bonus.sgzb.common.security.annotation.PreventRepeatSubmit;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
@ -190,6 +191,7 @@ public class BackReceiveController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Log(title = "退料接收-结束任务", businessType = BusinessType.MATERIAL)
|
@Log(title = "退料接收-结束任务", businessType = BusinessType.MATERIAL)
|
||||||
|
@PreventRepeatSubmit
|
||||||
@PostMapping("endBack")
|
@PostMapping("endBack")
|
||||||
public AjaxResult endBack(@RequestBody BackApplyInfo record) {
|
public AjaxResult endBack(@RequestBody BackApplyInfo record) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||||
|
import com.bonus.sgzb.common.security.annotation.PreventRepeatSubmit;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
|
@ -63,6 +64,7 @@ public class LeaseOutDetailsController extends BaseController {
|
||||||
* 根据二维码绑定设备
|
* 根据二维码绑定设备
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "根据二维码绑定设备-app")
|
@ApiOperation(value = "根据二维码绑定设备-app")
|
||||||
|
@PreventRepeatSubmit
|
||||||
@PostMapping("bindMachineByQrCode")
|
@PostMapping("bindMachineByQrCode")
|
||||||
@Log(title = "APP机具设备标签二维码绑定", businessType = BusinessType.MATERIAL)
|
@Log(title = "APP机具设备标签二维码绑定", businessType = BusinessType.MATERIAL)
|
||||||
public AjaxResult bindMachineByQrCode(@RequestBody MaMachine maMachine) {
|
public AjaxResult bindMachineByQrCode(@RequestBody MaMachine maMachine) {
|
||||||
|
|
@ -130,6 +132,7 @@ public class LeaseOutDetailsController extends BaseController {
|
||||||
* @param record 出库内容
|
* @param record 出库内容
|
||||||
*/
|
*/
|
||||||
@Log(title = "领料出库", businessType = BusinessType.MATERIAL)
|
@Log(title = "领料出库", businessType = BusinessType.MATERIAL)
|
||||||
|
@PreventRepeatSubmit
|
||||||
@PostMapping("/submitOut")
|
@PostMapping("/submitOut")
|
||||||
public AjaxResult submitOut(@RequestBody LeaseOutDetails record) {
|
public AjaxResult submitOut(@RequestBody LeaseOutDetails record) {
|
||||||
return leaseOutDetailsService.submitOut(record);
|
return leaseOutDetailsService.submitOut(record);
|
||||||
|
|
@ -140,6 +143,7 @@ public class LeaseOutDetailsController extends BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Log(title = "领料出库", businessType = BusinessType.MATERIAL)
|
@Log(title = "领料出库", businessType = BusinessType.MATERIAL)
|
||||||
|
@PreventRepeatSubmit
|
||||||
@PostMapping("/submitOutRfid")
|
@PostMapping("/submitOutRfid")
|
||||||
public AjaxResult submitOutRfid(@RequestBody List<LeaseOutDetails> recordList) {
|
public AjaxResult submitOutRfid(@RequestBody List<LeaseOutDetails> recordList) {
|
||||||
if (CollUtil.isEmpty(recordList)){
|
if (CollUtil.isEmpty(recordList)){
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||||
|
import com.bonus.sgzb.common.security.annotation.PreventRepeatSubmit;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -80,6 +81,7 @@ public class MaLabelBindController extends BaseController
|
||||||
* 新增机具设备标签ma_label_bind
|
* 新增机具设备标签ma_label_bind
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新增机具标签绑定管理列表")
|
@ApiOperation(value = "新增机具标签绑定管理列表")
|
||||||
|
@PreventRepeatSubmit
|
||||||
@Log(title = "机具设备标签二维码绑定", businessType = BusinessType.MATERIAL)
|
@Log(title = "机具设备标签二维码绑定", businessType = BusinessType.MATERIAL)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody MaLabelBindVO maLabelBindVO)
|
public AjaxResult add(@RequestBody MaLabelBindVO maLabelBindVO)
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||||
|
import com.bonus.sgzb.common.security.annotation.PreventRepeatSubmit;
|
||||||
import com.bonus.sgzb.material.domain.PutInStorageBean;
|
import com.bonus.sgzb.material.domain.PutInStorageBean;
|
||||||
import com.bonus.sgzb.base.api.domain.SavePutInfoDto;
|
import com.bonus.sgzb.base.api.domain.SavePutInfoDto;
|
||||||
import com.bonus.sgzb.material.service.InventoryAndWarehousingService;
|
import com.bonus.sgzb.material.service.InventoryAndWarehousingService;
|
||||||
|
|
@ -47,6 +48,7 @@ public class InventoryAndWarehousingController extends BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新增入库盘点")
|
@ApiOperation(value = "新增入库盘点")
|
||||||
|
@PreventRepeatSubmit
|
||||||
@PostMapping("/addList")
|
@PostMapping("/addList")
|
||||||
@Log(title = "盘点入库操作", businessType = BusinessType.MATERIAL)
|
@Log(title = "盘点入库操作", businessType = BusinessType.MATERIAL)
|
||||||
public AjaxResult savePutInfo(@RequestBody SavePutInfoDto dto) {
|
public AjaxResult savePutInfo(@RequestBody SavePutInfoDto dto) {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.bonus.sgzb.common.log.annotation.Log;
|
import com.bonus.sgzb.common.log.annotation.Log;
|
||||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||||
|
import com.bonus.sgzb.common.security.annotation.PreventRepeatSubmit;
|
||||||
import com.bonus.sgzb.material.service.IPurchaseMacodeInfoService;
|
import com.bonus.sgzb.material.service.IPurchaseMacodeInfoService;
|
||||||
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
|
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
|
||||||
import com.bonus.sgzb.base.api.domain.MaInputVO;
|
import com.bonus.sgzb.base.api.domain.MaInputVO;
|
||||||
|
|
@ -119,6 +120,7 @@ public class PurchaseMacodeInfoController extends BaseController {
|
||||||
* 通过/不通过
|
* 通过/不通过
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新购入库审核")
|
@ApiOperation(value = "新购入库审核")
|
||||||
|
@PreventRepeatSubmit
|
||||||
@Log(title = "新购验收任务", businessType = BusinessType.MATERIAL)
|
@Log(title = "新购验收任务", businessType = BusinessType.MATERIAL)
|
||||||
@PutMapping("/manageStatus")
|
@PutMapping("/manageStatus")
|
||||||
public AjaxResult modifyManageStatus(@RequestBody MaInputVO maInputVO) throws Exception {
|
public AjaxResult modifyManageStatus(@RequestBody MaInputVO maInputVO) throws Exception {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue