add:增加合格证入库功能。

This commit is contained in:
2024-11-27 11:05:02 +08:00
11 changed files with 31 additions and 5 deletions

View File

@@ -80,6 +80,9 @@ public class SpelUtil {
, "827075", "A1", "827074", "A1", "827073"
, "827078", "A2", "827079", "A2"
, "", "A3");
/**
*
*/
public static Map<String,String> parse(JSONObject sourceData,Map<String,String> fieldSkip){
StandardEvaluationContext context = new StandardEvaluationContext();
context.setVariable("M",sourceData);

View File

@@ -177,6 +177,9 @@ public class SyncErpService {
}
/**
*
*/
public List<Object> syncData(SyncFormMapping syncFormMapping) {
List<Object> result = new ArrayList<>();
try {

View File

@@ -54,6 +54,10 @@ public class PdaCommonController {
return new ResponseEntity<>(TableDataInfo.build(list),HttpStatus.OK);
}
/**
*
*/
@PostMapping("/update")
@Log("获取升级地址")
@SaIgnore

View File

@@ -51,6 +51,9 @@ public class PdaInController {
}
/**
*
*/
@GetMapping("/getCertificateInfo/{id}")
@Log("根据合格证查询物料信息")
public ResponseEntity<Object> getCertificateInfo(@PathVariable String id) {

View File

@@ -71,6 +71,10 @@ public class PdaOutController {
query.setStatus(new String[]{StatusEnum.FORM_STATUS.code("生成"),StatusEnum.FORM_STATUS.code("执行中")});
return new ResponseEntity<>(TableDataInfo.build(iPmFormDataService.queryTree(query,page)), HttpStatus.OK);
}
/**
*
*/
@PostMapping("confirm")
@Log("出库确认")
@SaIgnore

View File

@@ -130,6 +130,9 @@ public class PdaIOService {
return result;
}
/**
*
*/
private void getOpBills(String id, PmFormData result) throws Exception {
IdentifyInfo identifyInfo = new IdentifyInfo();
BeanUtils.copyProperties(erpSec, identifyInfo);

View File

@@ -44,7 +44,9 @@ public interface IPmFormDataService extends IService<PmFormData> {
* @return
*/
List<PmFormData> syncAnalyse(SyncFormMapping formMapping, String sourceString);
/**
*
*/
Object getSonDtlFormData(String id);
void dynamicSql(String sql);

View File

@@ -150,7 +150,7 @@ public class PmFormData implements Serializable {
private String prdOrgId;
/**
* 货主
* 货主1
*/
@TableField(exist = false)
private String ownerId;

View File

@@ -73,7 +73,9 @@ public class PmFormDataServiceImpl extends ServiceImpl<PmFormDataMapper, PmFormD
}
/**
*
*/
@Override
public List<PmFormData> syncAnalyse(SyncFormMapping formMapping, String sourceString) {
try {

View File

@@ -82,7 +82,7 @@ public class PickingController {
@PostMapping("/updateStatus")
@Log("修改单据状态")
public ResponseEntity<Object> updateStatus(@RequestBody JSONObject param) {
//TODO:明细校验
//TODO:明细校验1
iPmFormDataService.update(new UpdateWrapper<PmFormData>()
.set("status", param.getString("status"))
.eq("id", param.getString("id")));

View File

@@ -59,7 +59,9 @@ public class SyncErpBillsScheduleService {
}
}
/**
*
*/
public void syncData(SyncFormMapping syncFormMapping) {
boolean islock = lock.tryLock();
try {