| | |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.utils.DateUtil; |
| | | import com.fzzy.api.view.repository.Api1201Rep; |
| | | import com.fzzy.api.view.repository.Api1202Rep; |
| | | import com.fzzy.api.view.repository.Api1404Rep; |
| | |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | //默认一个随便值 |
| | | apiData.setLxdh(StringUtils.isEmpty(sysData.getUserContact()) ? "13012345678" : sysData.getUserContact().trim()); |
| | | |
| | | apiData.setSfzh(null == sysData.getUserId() ? "410183200010100000" : sysData.getUserId().trim()); |
| | | if(StringUtils.isEmpty(sysData.getUserId()) || sysData.getUserId().length() != 18){ |
| | | sysData.setUserId("410183199003187055"); |
| | | } |
| | | |
| | | //获取通知单信息,查询合同号和计划明细号 |
| | | listInoutNotice = fzzySyncNoticeInRep.listInoutNoticeInById(sysData.getNoticeId()); |
| | |
| | | |
| | | apiData.setBzwkl(0 - sysData.getDePackage()); |
| | | apiData.setBzbjs(sysData.getBzbjs()); |
| | | |
| | | apiData.setCmsj(sysData.getCompleteTime()); |
| | | if(StringUtils.isNotEmpty(sysData.getSettleId())){ |
| | | apiData.setRkjsdh(kqdm + sysData.getSettleId()); |
| | | } |
| | | //其它 |
| | | apiData.setQtkl(0 - sysData.getDeOther()); |
| | | //值仓 现场扣重 |
| | |
| | | |
| | | int idNum = Integer.valueOf(sysData.getId().substring(12)) * 100 + 10001; |
| | | for (Fz40InoutRecordItem fz40InoutRecordItem : listInoutRecordItem) { |
| | | if ("DEL".equals(fz40InoutRecordItem.getRecordStatus())) { |
| | | continue; |
| | | } |
| | | if (fz40InoutRecordItem.getSettleWeight() <= 0) { |
| | | continue; |
| | | } |
| | |
| | | apiData.setMz(fz40InoutRecordItem.getFullWeight()); |
| | | apiData.setPz(fz40InoutRecordItem.getEmptyWeight()); |
| | | apiData.setJz(fz40InoutRecordItem.getSettleWeight()); |
| | | apiData.setMzjlsj(fz40InoutRecordItem.getFullWeightTime()); |
| | | apiData.setPzjlsj(fz40InoutRecordItem.getEmptyWeightTime()); |
| | | api1202List = api1202Rep.getDataById(apiData.getRkywdh()); |
| | | if (null == api1202List || api1202List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |