| | |
| | | import com.zy.asrs.entity.LocNormal; |
| | | import com.zy.asrs.mapper.LocNormalMapper; |
| | | import com.zy.asrs.service.LocNormalService; |
| | | import com.zy.common.service.erp.ErpSqlServer; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | |
| | | @Service("locNormalService") |
| | | public class LocNormalServiceImpl extends ServiceImpl<LocNormalMapper, LocNormal> implements LocNormalService { |
| | | @Autowired |
| | | ErpSqlServer erpSqlServer; |
| | | |
| | | @Override |
| | | public List<LocNormal> getLocNormalData() { |
| | |
| | | |
| | | @Override |
| | | public void locNormalIn(List<LocNormal> list) { |
| | | // 平仓入库后更新中间表数据,Fflag_finish改为1,表示平仓入库成功 |
| | | if (list.size() > 0) { |
| | | for (Integer i = 0; i < list.size(); i++) { |
| | | String sql = "update CPICMO set Fflag_finish = 1 where FBillNo = '" + list.get(i).getSupplier() + "' and Fnumber = '" + list.get(i).getMatnr() +"'"; |
| | | erpSqlServer.update(sql); |
| | | } |
| | | } |
| | | baseMapper.locNormalIn(list); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<LocNormal> pdaLocNormalQuery(String matnr, String warehouse) { |
| | | return baseMapper.pdaLocNormalQuery(matnr, warehouse); |
| | | public List<LocNormal> pdaLocNormalQuery(String matnr, String warehouse, String billNo) { |
| | | return baseMapper.pdaLocNormalQuery(matnr, warehouse, billNo); |
| | | } |
| | | |
| | | @Override |