|
@@ -9,6 +9,7 @@ import com.winsea.svc.base.base.service.ICommonRoleResourceService;
|
|
|
import com.winsea.svc.base.security.entity.User;
|
|
|
import com.winsea.svc.base.security.util.AuthSecurityUtils;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.constant.StatusEnum;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.ContractManagementInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.PurchaseReceiptReport;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.StockPurchaseReceiptReport;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.StockPurchaseReceiptReportMapper;
|
|
@@ -19,6 +20,7 @@ import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -104,6 +106,32 @@ public class StockPurchaseReceiptReportServiceImpl extends ServiceImpl<StockPurc
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 定金/备注
|
|
|
+ *
|
|
|
+ * @param contractManagementInfo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public String disAndRemark(ContractManagementInfo contractManagementInfo) {
|
|
|
+ //查询合同
|
|
|
+ ContractManagementInfo contractManagementInfo1 = contractManagementInfoService.selectById(contractManagementInfo.getId());
|
|
|
+ if (contractManagementInfo1 != null) {
|
|
|
+ if(StringUtils.isNotBlank(contractManagementInfo.getDeposit())){
|
|
|
+ contractManagementInfo1.setDeposit(contractManagementInfo.getDeposit());
|
|
|
+ contractManagementInfo1.setDepositUrl(contractManagementInfo.getDepositUrl());
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(contractManagementInfo.getRemark())){
|
|
|
+ contractManagementInfo1.setRemark(contractManagementInfo.getRemark());
|
|
|
+ }
|
|
|
+ //更改采购入库报表信息
|
|
|
+ contractManagementInfoService.updateById(contractManagementInfo1);
|
|
|
+ return "OK";
|
|
|
+ }
|
|
|
+ return "NG";
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private List<String> getResourceIdList() {
|
|
|
User currentUser = AuthSecurityUtils.getCurrentUserInfo();
|