| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.mandi.basicconfig.mapper.NczsjMapper; |
| | | import com.mandi.basicconfig.persist.Nckh; |
| | | import com.mandi.fendan.mapper.*; |
| | | import com.mandi.fendan.util.ConvertTool; |
| | | import com.mandi.servlet.file.impl.FileLoadImpl; |
| | | import com.mandi.springmvc.logs.OpLogs; |
| | | import com.mandi.system.persist.ModuleEnum; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.log4j.Logger; |
| | | import org.apache.poi.ss.usermodel.charts.ScatterChartSeries; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | |
| | | @Service |
| | | public class Fd_BsheetService implements Ifd_bsheetService { |
| | | private Logger log= Logger.getLogger(Fd_BsheetService.class); |
| | | |
| | | @Resource |
| | | private Fd_BsheetMapper bsper; |
| | |
| | | private Fd_YKTMapper yktmper; |
| | | @Resource |
| | | private FdMxWlgsMapper fdMxWlgsMapper; |
| | | |
| | | @Resource |
| | | private NczsjMapper zsjper; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor=Exception.class) |
| | |
| | | } |
| | | } |
| | | }else{ |
| | | |
| | | // Fd_wlgs_fhdq wldq=this.dqper.getbyNos(lg.getDepartno(),xstd.getTd_shddbh(), |
| | | // todo 下面的意义何在????默认查科技??? |
| | | // xstd.getTd_ywdybh().equals(Contants.nc_ywdy_ZZ)?Contants.nc_ywdy_ZZ |
| | | // :xstd.getTd_ywdybh().equals(Contants.nc_ywdy_MS)?Contants.nc_ywdy_MS |
| | | // :Contants.nc_ywdy_KJ); |
| | | Fd_wlgs_fhdq wldq = this.dqper.getbyNos(lg.getDepartno(),xstd.getTd_shddbh(), ConvertTool.ncGetDefault(xstd.getTd_ywdybh())); |
| | | int total = fdMxWlgsMapper.selectCountByTdTdls(xstd.getTd_tdls()); |
| | | if(wldq==null && total == 0){ |
| | |
| | | if(StringUtils.isBlank(xstd.getTd_fpbh())){ |
| | | if(mm!=null) |
| | | Rcompany=mm.get("name")==null?"":mm.get("name").toString(); |
| | | // 判断是否存在客户 |
| | | if(mm == null || mm.size() == 0) { // 客户必须存在,否则无法分单 |
| | | orr.setCode(1); |
| | | orr.setErrmsg("该提单客户不存在,请检查数据!"); |
| | | return orr; |
| | | } |
| | | }else{ |
| | | /*Rcompany=(xstd.getTd_ywdybh().equals(Contants.nc_ywdy_ZZ)?"郑州报关": |
| | | xstd.getTd_ywdybh().equals(Contants.nc_ywdy_MT)?"河南报关": |
| | | xstd.getTd_ywdybh().equals(Contants.nc_ywdy_MS)?"明晟报关": |
| | | "科技报关");*/ |
| | | Rcompany = ConvertTool.covertToCustoms(xstd.getTd_ywdybh()); |
| | | } |
| | | |
| | |
| | | List<Fd_XSTDMX> mxl=new ArrayList<Fd_XSTDMX>(); |
| | | //是否保存一卡通业务单表头信息 |
| | | boolean saveBT=false; |
| | | /*String bsDE=xstd.getTd_cqNo().equals(Contants.nc_ywdy_ZZ) ? |
| | | Contants.zzSdepartNo :xstd.getTd_cqNo().equals(Contants.nc_ywdy_MS)?Contants.msSdepartNo:Contants.kjSdepartNo;*/ |
| | | String bsDE = ConvertTool.ncCovertToYkt(xstd.getTd_cqNo()); |
| | | String bbsNo=""; |
| | | String ziti="";//是否自提 |
| | |
| | | } |
| | | } |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | if(saveBT){ |
| | | JsonObject jo=new JsonObject(); |
| | | jo.addProperty("bussinessNo", bbsNo); |
| | |
| | | } |
| | | |
| | | orr.setCode(0); |
| | | orr.setItem(null); |
| | | Map map = new HashMap<>(); |
| | | // 返回业务单号,给前端使用 |
| | | map.put("businessNo",bbsNo); |
| | | orr.setItem(map); |
| | | return orr; |
| | | } |
| | | |