|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.gaotao.modules.purchaseorder.controller; |
|
|
|
|
|
|
|
import com.gaotao.common.constant.SysMsgConstant; |
|
|
|
import com.gaotao.common.utils.PageUtils; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.app.entity.Supplier; |
|
|
|
@ -16,6 +17,7 @@ import com.gaotao.modules.purchaseorder.query.TblBaseDataQuery; |
|
|
|
import com.gaotao.modules.purchaseorder.service.AuthorizationHistService; |
|
|
|
import com.gaotao.modules.purchaseorder.service.PRHeaderService; |
|
|
|
import com.gaotao.modules.purchaseorder.service.TblBaseDataService; |
|
|
|
import com.gaotao.modules.sys.controller.AbstractController; |
|
|
|
import com.gaotao.modules.toolman.query.ToolDetailQuery; |
|
|
|
import com.gaotao.modules.toolman.service.FileAssociateService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -33,7 +35,7 @@ import java.util.List; |
|
|
|
*/ |
|
|
|
@RestController |
|
|
|
@RequestMapping("PRHeader") |
|
|
|
public class PRHeaderController { |
|
|
|
public class PRHeaderController extends AbstractController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private PRHeaderService prHeaderService; |
|
|
|
@ -117,7 +119,7 @@ public class PRHeaderController { |
|
|
|
@PostMapping("updatePRHeaderAuthorizeFlag") |
|
|
|
public R updatePRHeaderAuthorizeFlag(@RequestBody PRHeaderQuery prHeaderQuery) { |
|
|
|
prHeaderService.updatePRHeaderAuthorizeFlag(prHeaderQuery); |
|
|
|
return R.ok().put("msg", "操作成功!"); |
|
|
|
return R.ok().put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -133,7 +135,7 @@ public class PRHeaderController { |
|
|
|
@PostMapping("savePRDetail") |
|
|
|
public R savePRDetail(@RequestBody PRDetailQuery prDetailQuery) { |
|
|
|
prHeaderService.insertPRDetail(prDetailQuery); |
|
|
|
return R.ok().put("msg", "操作成功!"); |
|
|
|
return R.ok().put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -181,7 +183,7 @@ public class PRHeaderController { |
|
|
|
@PostMapping("updatePRHeader") |
|
|
|
public R updatePRHeader(@RequestBody AuthorizationHist authorizationHist) { |
|
|
|
authorizationHistService.saveAuthorizationHist(authorizationHist); |
|
|
|
return R.ok().put("msg", "操作成功!"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -194,7 +196,7 @@ public class PRHeaderController { |
|
|
|
@PostMapping("updatePRHeaderList") |
|
|
|
public R updatePRHeaderList(@RequestBody List<AuthorizationHist> authorizationHist){ |
|
|
|
authorizationHistService.updatePRHeaderList(authorizationHist); |
|
|
|
return R.ok().put("msg", "操作成功!"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -273,7 +275,7 @@ public class PRHeaderController { |
|
|
|
@PostMapping("delFileAssociate") |
|
|
|
public R delFileAssociate(@RequestBody FileAssociateData fileAssociateData) { |
|
|
|
fileAssociateService.delFileAssociate(fileAssociateData); |
|
|
|
return R.ok("操作成功!"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -289,12 +291,12 @@ public class PRHeaderController { |
|
|
|
@PostMapping("saveFileAssociate") |
|
|
|
public R saveFileAssociate(@RequestBody List<FileAssociateData> list) { |
|
|
|
fileAssociateService.saveFileAssociate(list); |
|
|
|
return R.ok("操作成功!"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("updateReceiveToolDetail") |
|
|
|
public R updateReceiveToolDetail(@RequestBody ToolDetailQuery toolDetailQuery){ |
|
|
|
prHeaderService.updateReceiveToolDetail( toolDetailQuery); |
|
|
|
return R.ok("操作成功!"); |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
} |