|
|
@ -1,5 +1,6 @@ |
|
|
package com.dreamchaser.depository_manage.service.impl; |
|
|
package com.dreamchaser.depository_manage.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.dreamchaser.depository_manage.config.PublicConfig; |
|
|
import com.dreamchaser.depository_manage.config.PublicConfig; |
|
|
import com.dreamchaser.depository_manage.config.QyWxConfig; |
|
|
import com.dreamchaser.depository_manage.config.QyWxConfig; |
|
|
@ -2039,6 +2040,22 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 删除出错的数据 |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public void clearOutBadData() { |
|
|
|
|
|
List<ApplicationOutRecord> applicationOutRecordPForBad = depositoryRecordMapper.findApplicationOutRecordPForBad(); |
|
|
|
|
|
for (ApplicationOutRecord record : applicationOutRecordPForBad) { |
|
|
|
|
|
Integer id = record.getId(); |
|
|
|
|
|
List<ApplicationOutRecordMin> applicationOutRecordMinByParent = depositoryRecordMapper.findApplicationOutRecordMinByParent(id); |
|
|
|
|
|
if(applicationOutRecordMinByParent == null || applicationOutRecordMinByParent.size() <= 0){ |
|
|
|
|
|
log.warn(DateUtil.getNowTime()+": 删除出错的出库订单:"+ JSONObject.toJSONString(record)); |
|
|
|
|
|
depositoryRecordMapper.deleteApplicationOutRecordById(id); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 用于完成出库时的相关处理操作 |
|
|
* 用于完成出库时的相关处理操作 |
|
|
* |
|
|
* |
|
|
@ -4421,6 +4438,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
List<ApplicationOutRecord> list = depositoryRecordMapper.findApplicationOutRecordPByCondition(map); |
|
|
List<ApplicationOutRecord> list = depositoryRecordMapper.findApplicationOutRecordPByCondition(map); |
|
|
List<ApplicationOutRecordP> result = new ArrayList<>(); |
|
|
List<ApplicationOutRecordP> result = new ArrayList<>(); |
|
|
for (ApplicationOutRecord recordP : list) { |
|
|
for (ApplicationOutRecord recordP : list) { |
|
|
|
|
|
if (recordP.getQuantity() == null || 0 == recordP.getQuantity()) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
UserByPort userByPortById = LinkInterfaceUtil.FindUserById(recordP.getApplicantId(), userKey, token); |
|
|
UserByPort userByPortById = LinkInterfaceUtil.FindUserById(recordP.getApplicantId(), userKey, token); |
|
|
String time = DateUtil.TimeStampToDateTime(Long.valueOf(recordP.getApplicantTime())); |
|
|
String time = DateUtil.TimeStampToDateTime(Long.valueOf(recordP.getApplicantTime())); |
|
|
recordP.setApplicantName(userByPortById.getName()); |
|
|
recordP.setApplicantName(userByPortById.getName()); |
|
|
|