优化
This commit is contained in:
@@ -32,8 +32,8 @@ public class ToErpApiController {
|
||||
/**
|
||||
* 回传其他出入库单
|
||||
*/
|
||||
//@Scheduled(fixedDelay = 1500)
|
||||
// public void callbackTransferBill() {
|
||||
// toErpService.callbackTransferBill();
|
||||
// }
|
||||
@Scheduled(fixedDelay = 1500)
|
||||
public void callbackTransferBill() {
|
||||
toErpService.callbackTransferBill();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ import com.ruoyi.job.mydojobdetail.domain.MydoJobDetail;
|
||||
import com.ruoyi.job.mydojobdetail.service.IMydoJobDetailService;
|
||||
import com.ruoyi.log.service.IRequestLogService;
|
||||
import com.ruoyi.out.outStockout.service.IOutStockoutService;
|
||||
import com.ruoyi.pda.mapper.PdaMapper;
|
||||
import com.ruoyi.stock.stock.domain.BasStock;
|
||||
import com.ruoyi.stock.stock.service.IBasStockService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -86,6 +87,9 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
private IRequestLogService requestLogService;
|
||||
@Autowired
|
||||
private IBasStockService stockService;
|
||||
@Autowired
|
||||
private PdaMapper pdaMapper;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@@ -326,10 +330,11 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
return AjaxResult.error("没有任务");
|
||||
}
|
||||
}
|
||||
|
||||
//TODO
|
||||
@Override
|
||||
public AjaxResult jobFinish(WmsJobRequest wmsJobRequest) {
|
||||
MydoJob mydoJobParam = new MydoJob();
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
switch (wmsJobRequest.getWmsType()) {
|
||||
case "1":
|
||||
|
||||
@@ -363,6 +368,13 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
MydoJob outJob = outMydoJobs.get(0);
|
||||
outJob.setExecutionPhase("2");
|
||||
mydoJobService.updateMydoJob(outJob);
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("v_tray_code", outJob.getTrayCode());
|
||||
pdaMapper.outMakeSure(map);
|
||||
String result=map.get("v_result").toString();
|
||||
if(!"10".equals(result)){
|
||||
stringBuilder.append(",").append(map.get("v_resultmsg"));
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@@ -76,11 +76,11 @@ public class ViewProductAndStock extends BaseEntity
|
||||
|
||||
/** 净重 */
|
||||
@Excel(name = "净重")
|
||||
private BigDecimal netWeight;
|
||||
private String netWeight;
|
||||
|
||||
/** 毛重 */
|
||||
@Excel(name = "毛重")
|
||||
private BigDecimal grossWeight;
|
||||
private String grossWeight;
|
||||
|
||||
/** 分销 */
|
||||
@Excel(name = "分销")
|
||||
@@ -242,22 +242,22 @@ public class ViewProductAndStock extends BaseEntity
|
||||
return phase;
|
||||
}
|
||||
|
||||
public void setNetWeight(BigDecimal netWeight)
|
||||
public void setNetWeight(String netWeight)
|
||||
{
|
||||
this.netWeight = netWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWeight()
|
||||
public String getNetWeight()
|
||||
{
|
||||
return netWeight;
|
||||
}
|
||||
|
||||
public void setGrossWeight(BigDecimal grossWeight)
|
||||
public void setGrossWeight(String grossWeight)
|
||||
{
|
||||
this.grossWeight = grossWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getGrossWeight()
|
||||
public String getGrossWeight()
|
||||
{
|
||||
return grossWeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user