|
@@ -112,6 +112,42 @@ public class SyCarryController {
|
|
|
return Result.ok("编辑成功!");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ * 编辑文件
|
|
|
+ *
|
|
|
+ * @param
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @AutoLog(value = "搬运工对账单-编辑文件")
|
|
|
+ @GetMapping(value = "/editFile")
|
|
|
+ public Result<?> editFile(String id,String annex) {
|
|
|
+ if(StringUtils.isBlank(id) || StringUtils.isBlank(annex)){
|
|
|
+ return Result.error("请上传文件!");
|
|
|
+ }
|
|
|
+ SyCarry syCarry1 = syCarryService.getById(id);
|
|
|
+ if(syCarry1 == null || StringUtils.isBlank(syCarry1.getState())){
|
|
|
+ return Result.error("数据无效!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(syCarry1.getState().equals("70")){
|
|
|
+ return Result.error("当前状态无法修改!");
|
|
|
+ }
|
|
|
+ SyCarry syCarry = new SyCarry();
|
|
|
+ syCarry.setId(id);
|
|
|
+ syCarry.setAnnex(annex);
|
|
|
+ syCarryService.updateById(syCarry);
|
|
|
+ return Result.ok("编辑成功!");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* 通过id删除
|
|
|
*
|