| | |
| | | |
| | | 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) |
| | |
| | | orr.setCode(1); |
| | | orr.setErrmsg("该提单已经分单完成,不能分单!"); |
| | | return orr; |
| | | } |
| | | // 判断是否存在客户 |
| | | if(StringUtils.isBlank(xstd.getTd_fpbh())){ |
| | | Nckh nckh = zsjper.getNckhbyCode(xstd.getTd_khbh());// 客户不存在的特殊情况是不应该存在的,以防万一,加判空。 |
| | | if(nckh == null) { |
| | | orr.setCode(1); |
| | | orr.setErrmsg("该提单客户不存在,请检查数据!"); |
| | | return orr; |
| | | } |
| | | } |
| | | //送货 |
| | | if(xstd.getTd_ztbz()==2){ |
| | |
| | | } |
| | | } |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | if(saveBT){ |
| | | JsonObject jo=new JsonObject(); |
| | | jo.addProperty("bussinessNo", bbsNo); |