|
@@ -25,6 +25,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -212,10 +213,14 @@ public class GoodsApplyLogic {
|
|
|
goodsApplyItemService.saveBatch(goodsApplyItemList);
|
|
|
}
|
|
|
|
|
|
- public void approve(String goodsApplyId, String status) {
|
|
|
+ public void approve(String goodsApplyId, String status,String approveRemark) {
|
|
|
+ AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
GoodsApply goodsApply = new GoodsApply();
|
|
|
goodsApply.setGoodsApplyId(goodsApplyId);
|
|
|
goodsApply.setStatus(status);
|
|
|
+ goodsApply.setApproveRemark(approveRemark);
|
|
|
+ goodsApply.setApproveName(adminUser.getNickName());
|
|
|
+ goodsApply.setApproveTime(new Date());
|
|
|
goodsApply.updateById();
|
|
|
}
|
|
|
|