|
@@ -14,6 +14,7 @@ import com.ruoyi.basicData.mapper.TFeesMapper;
|
|
import com.ruoyi.basicData.mapper.TGoodsMapper;
|
|
import com.ruoyi.basicData.mapper.TGoodsMapper;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
+import com.ruoyi.common.core.domain.entity.TWarehouse;
|
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
@@ -179,7 +180,7 @@ public class TWarehouseAgreementServiceImpl implements ITWarehouseAgreementServi
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
- public AjaxResult insertTWarehouseAgreement(String agreement, String agreementitems, LoginUser loginUser, int fFeetypeid) {
|
|
|
|
|
|
+ public AjaxResult insertTWarehouseAgreement(String agreement, String agreementitems, String[] warehouse, LoginUser loginUser, int fFeetypeid) {
|
|
Long fPid = null;
|
|
Long fPid = null;
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
TWarehouseAgreement tWarehouseAgreement = JSONArray.parseObject(agreement, TWarehouseAgreement.class);
|
|
TWarehouseAgreement tWarehouseAgreement = JSONArray.parseObject(agreement, TWarehouseAgreement.class);
|
|
@@ -196,6 +197,17 @@ public class TWarehouseAgreementServiceImpl implements ITWarehouseAgreementServi
|
|
tWarehouseAgreement.setfBillstatus("2"); // 暂存
|
|
tWarehouseAgreement.setfBillstatus("2"); // 暂存
|
|
tWarehouseAgreementMapper.insertTWarehouseAgreement(tWarehouseAgreement);
|
|
tWarehouseAgreementMapper.insertTWarehouseAgreement(tWarehouseAgreement);
|
|
fPid = tWarehouseAgreement.getfId();
|
|
fPid = tWarehouseAgreement.getfId();
|
|
|
|
+
|
|
|
|
+ //仓库选择 f_warehouse_information
|
|
|
|
+ String wares = StringUtils.join(warehouse, ",");
|
|
|
|
+ TWarehouseAgreement twarehouse = JSONArray.parseObject(wares, TWarehouseAgreement.class);
|
|
|
|
+ List<TWarehouseAgreement> tWarehouses = new ArrayList<>();
|
|
|
|
+ for (TWarehouseAgreement tWarehouseone : tWarehouses) {
|
|
|
|
+ tWarehouseone.setfWarehouseInformation(String.valueOf(twarehouse));
|
|
|
|
+ }
|
|
|
|
+ tWarehouseAgreementMapper.insertTWarehouseAgreement(twarehouse);
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
fPid = tWarehouseAgreement.getfId();
|
|
fPid = tWarehouseAgreement.getfId();
|
|
tWarehouseAgreement.setfBillstatus("2");
|
|
tWarehouseAgreement.setfBillstatus("2");
|