|
|
@@ -65,7 +65,7 @@ public class HlwCompanyInvoiceInfoController {
|
|
|
@AutoLog(value = "新增开票资料")
|
|
|
@ApiOperation(value = "新增开票资料", notes = "新增开票资料")
|
|
|
@PostMapping(value = "/add")
|
|
|
- public Result<?> applyInvocie(@RequestBody String json) {
|
|
|
+ public Result<?> add(@RequestBody String json) {
|
|
|
log.info("json========{}", json);
|
|
|
//数据解密
|
|
|
json = CryptTool.decode(json);
|
|
|
@@ -77,4 +77,25 @@ public class HlwCompanyInvoiceInfoController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 编辑开票资料
|
|
|
+ *
|
|
|
+ * @param json
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @AutoLog(value = "编辑开票资料")
|
|
|
+ @ApiOperation(value = "编辑开票资料", notes = "编辑开票资料")
|
|
|
+ @PostMapping(value = "/edit")
|
|
|
+ public Result<?> edit(@RequestBody String json) {
|
|
|
+ log.info("json========{}", json);
|
|
|
+ //数据解密
|
|
|
+ json = CryptTool.decode(json);
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(json);
|
|
|
+ //获取应用信息
|
|
|
+ OauthApplication oauthApplication = authService.getApplication(SecurityUtils.getClient());
|
|
|
+ jsonObject.put("applicationId", oauthApplication.getApplicationId());
|
|
|
+ Result<?> result = hlwCompanyInvoiceInfoServiceClient.edit(jsonObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|