yinq 12 months ago
commit 0418b3dfba

@ -1,12 +1,11 @@
package com.aucma.api.controller;
import com.aucma.api.domain.dto.CheckInfoDto;
import com.aucma.api.service.IPdaBindingService;
import com.aucma.common.core.domain.AjaxResult;
import com.aucma.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.Optional;
@ -26,13 +25,25 @@ public class PdaBindingController {
//壳胆绑定-提交
@PostMapping("/boxBanding")
public AjaxResult binding(String boxCode,String innerCode,String loginName){
String boxName = service.selectBoxNameByCode(boxCode);
if (StringUtils.isNotNull(boxName)){
service.insertBindingInfo(boxCode,boxName,innerCode);
return success() ;
}
public AjaxResult binding(String boxCode, String innerCode, String loginName) {
String boxName = service.selectBoxNameByCode(boxCode);
if (StringUtils.isNotNull(boxName)) {
service.insertBindingInfo(boxCode, boxName, innerCode);
return success();
}
return error("箱壳条码扫描错误");
}
//条码绑定
// 质检提交
@PostMapping("/checkSubmit")
public AjaxResult checkSubmit(@RequestBody CheckInfoDto checkInfo/*,
@RequestParam("processCode") String processCode,
@RequestParam("userName") String userName*/) {
System.out.println(checkInfo.toString());
// System.out.println(processCode);
// System.out.println(userName);
return success();
}
}

@ -0,0 +1,101 @@
package com.aucma.api.domain.dto;
import java.util.List;
/**
* @author wanghao
* @date 2023/11/21 16:44
*/
public class CheckInfoDto {
private String code;//产品条码
private String defect;
private List<DefectBeen> list;//缺陷列表
private String measure;//处理措施TREATMENT_MEASURE
private String offline;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDefect() {
return defect;
}
public void setDefect(String defect) {
this.defect = defect;
}
public List<DefectBeen> getList() {
return list;
}
public void setList(List<DefectBeen> list) {
this.list = list;
}
public String getMeasure() {
return measure;
}
public void setMeasure(String measure) {
this.measure = measure;
}
public String getOffline() {
return offline;
}
public void setOffline(String offline) {
this.offline = offline;
}
@Override
public String toString() {
return "CheckInfoDto{" + "code='" + code + '\'' + ", defect='" + defect + '\'' + ", list=" + list + ", measure='" + measure + '\'' + ", offline='" + offline + '\'' + '}';
}
public static class DefectBeen {
private String qualityDefectCode;
private String qualityDefectName;
private String itemCode;
public DefectBeen() {
}
public String getQualityDefectCode() {
return qualityDefectCode;
}
public void setQualityDefectCode(String qualityDefectCode) {
this.qualityDefectCode = qualityDefectCode;
}
public String getQualityDefectName() {
return qualityDefectName;
}
public void setQualityDefectName(String qualityDefectName) {
this.qualityDefectName = qualityDefectName;
}
public String getItemCode() {
return itemCode;
}
public void setItemCode(String itemCode) {
this.itemCode = itemCode;
}
@Override
public String toString() {
return "DefectBeen{" + "qualityDefectCode='" + qualityDefectCode + '\'' + ", qualityDefectName='" + qualityDefectName + '\'' + ", itemCode='" + itemCode + '\'' + '}';
}
}
}

@ -9,7 +9,7 @@ import com.aucma.base.domain.BaseMaterialInfo;
* @author Yinq
* @date 2023-09-19
*/
public interface BaseMaterialInfoMapper
public interface BaseMaterialinfoMapper
{
/**
*

@ -5,7 +5,7 @@ import java.util.List;
import com.aucma.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aucma.base.mapper.BaseMaterialInfoMapper;
import com.aucma.base.mapper.BaseMaterialinfoMapper;
import com.aucma.base.domain.BaseMaterialInfo;
import com.aucma.base.service.IBaseMaterialInfoService;
@ -19,7 +19,7 @@ import com.aucma.base.service.IBaseMaterialInfoService;
public class BaseMaterialInfoServiceImpl implements IBaseMaterialInfoService
{
@Autowired
private BaseMaterialInfoMapper baseMaterialInfoMapper;
private BaseMaterialinfoMapper baseMaterialInfoMapper;
/**
*

@ -2,7 +2,7 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aucma.base.mapper.BaseMaterialInfoMapper">
<mapper namespace="com.aucma.base.mapper.BaseMaterialinfoMapper">
<resultMap type="BaseMaterialInfo" id="BaseMaterialInfoResult">
<result property="objId" column="obj_id" />

Loading…
Cancel
Save