| | |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | shjdjwApi1310.setPznm(api1310.getLspzdm()); |
| | | shjdjwApi1310.setSkdjbm(api1310.getLsdjdm()); |
| | | shjdjwApi1310.setJylbbm(api1310.getJylb()); |
| | | if (StringUtils.isNotEmpty(shjdjwApi1310.getJyxm())) { |
| | | String[] split = shjdjwApi1310.getJyxm().split(","); |
| | | StringBuilder jyjl = new StringBuilder(); |
| | | for (String s : split) { |
| | | jyjl.append(",合格"); |
| | | } |
| | | shjdjwApi1310.setJyjl(jyjl.toString().substring(1)); |
| | | } |
| | | |
| | | // if (StringUtils.isNotEmpty(shjdjwApi1310.getJyxm())) { |
| | | // String[] split = shjdjwApi1310.getJyxm().split(","); |
| | | // StringBuilder jyjl = new StringBuilder(); |
| | | // for (String s : split) { |
| | | // jyjl.append(",合格"); |
| | | // } |
| | | // shjdjwApi1310.setJyjl(jyjl.toString().substring(1)); |
| | | // } |
| | | //调整为传递检验值 |
| | | shjdjwApi1310.setJyjl(api1310.getJyxmz()); |
| | | shjdjwApi1310.setZlzbjgpd(api1310.getZbjgpd()); |
| | | //查询单位信息 |
| | | List<Api1101> listApi1101 = api1101Rep.findPushData(api1310.getKqdm()); |
| | |
| | | shjdjwApi1205.setDwmc(listApi1101.get(0).getDwmc()); |
| | | } |
| | | |
| | | //查询仓房信息 |
| | | List<Api1103> listApi1103 = api1103Rep.findPushDataByCfdm(api1205.getHwdm().substring(0, 25)); |
| | | if (null != listApi1103 && listApi1103.size() > 0) { |
| | | shjdjwApi1205.setCfmc(listApi1103.get(0).getCfmc()); |
| | | //查询货位信息 |
| | | List<Api1105> listApi1105 = api1105Rep.findPushDataByHwdm(api1205.getHwdm()); |
| | | if (null != listApi1105 && listApi1105.size() > 0) { |
| | | shjdjwApi1205.setCfmc(listApi1105.get(0).getHwmc()); |
| | | } |
| | | |
| | | shjdjwApi1205.setDjlx("0"); |
| | |
| | | |
| | | shjdjwApi1205.setDksj(api1205.getDjsj()); |
| | | shjdjwApi1205.setLksj(api1205.getCmsj()); |
| | | shjdjwApi1205.setLhnd(DateFormatUtils.format(api1205.getCmsj(), "yyyy")); |
| | | shjdjwApi1205.setPch("0"); |
| | | return shjdjwApi1205; |
| | | } |
| | |
| | | //批次号 |
| | | shjdjwApi1202.setPch("0"); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public ResponseDto pullData(ApiParam param, ApiConfs conf) { |
| | | //该协议无此实现 |
| | | return null; |
| | | } |
| | | } |