|
|
@@ -45,6 +45,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@@ -338,11 +339,15 @@ public class TradingBoxController extends BladeController {
|
|
|
/**
|
|
|
* 修改打印人,打印日期
|
|
|
*/
|
|
|
- @PostMapping("/update")
|
|
|
+ @GetMapping("/update")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@RepeatSubmit
|
|
|
- public R update(@Valid @RequestBody TradingBox tradingBox) {
|
|
|
- return R.data(tradingBoxService.updateById(tradingBox));
|
|
|
+ public R update(TradingBox tradingBox) {
|
|
|
+ tradingBox.setPrintingPersonId(AuthUtil.getUserId());
|
|
|
+ tradingBox.setPrintingPersonName(AuthUtil.getUserName());
|
|
|
+ tradingBox.setPrintingPersonDate(new Date());
|
|
|
+ tradingBoxService.updateById(tradingBox);
|
|
|
+ return R.data(tradingBox);
|
|
|
}
|
|
|
|
|
|
}
|