| | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.util.*; |
| | | |
| | |
| | | } |
| | | |
| | | //封装数据 |
| | | SH2023PullReqDto reqData = new SH2023PullReqDto();; |
| | | SH2023PullReqDto reqData = new SH2023PullReqDto(); |
| | | ; |
| | | |
| | | reqData.setName(conf.getUserName()); |
| | | reqData.setPwd(conf.getAppCode()); |
| | |
| | | } |
| | | //包装储粮是,核查包存粮包数 |
| | | if(null == apiData.getBclbs()){ |
| | | apiData.setBclbs(0); |
| | | api1208.setBclbs(0); |
| | | } |
| | | if("2".equals(apiData.getClfs()) && apiData.getBclbs() == 0){ |
| | | apiData.setBclbs((int)(apiData.getSjsl()/25)); |
| | | api1208.setBclbs((int) (apiData.getSjsl() / 25)); |
| | | api1208.setCplgg(25); |
| | | api1208.setCplbs(api1208.getBclbs()); |
| | | } |
| | | |
| | | //设置空属性为默认值 |
| | | changeObject(api1208); |
| | | return api1208; |
| | |
| | | List<Api1208> api1208List = api1208Rep.findDataByHwdm(api1209.getHwdm()); |
| | | if (null != api1208List && api1208List.size() > 0) { |
| | | api1209.setPch(api1209.getHwdm() + api1208List.get(0).getShnd()); |
| | | api1209.setLspzdm(api1208List.get(0).getLspzdm()); |
| | | } |
| | | //校验统一编码是否为空,为空则查询信息进行赋值 |
| | | if(StringUtils.isEmpty(api1209.getTyhwbm())){ |
| | |
| | | } |
| | | //设置空属性为默认值 |
| | | changeObject(api1211); |
| | | api1211.setYwksrq(api1211.getYwrq()); |
| | | if ("0".equals(api1211.getYjbz())) { |
| | | api1211.setYwksrq(DateUtil.getMonthFirst(api1211.getYwrq())); |
| | | } |
| | | return api1211; |
| | | } |
| | | if (SH2023Constant.SH_2023_API_CODE_1212.equals(inteId)) { |
| | |
| | | |
| | | /** |
| | | * 赋值最后更新时间 |
| | | * |
| | | * @param object |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | return wjmc; |
| | | } |
| | | |
| | | private String getYwdh(String wjlx, String wjmc, String ywdh) { |
| | | String[] s = wjmc.split("_"); |
| | | if ("2".equals(wjlx) || "3".equals(wjlx) || "4".equals(wjlx) || "5".equals(wjlx)) { |