功能完善
This commit is contained in:
parent
24c927baa2
commit
96020c4510
|
|
@ -139,6 +139,17 @@ public class BackReceiveController extends BaseController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "退料接收-rfid编码查询", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("rfidCodeQuery")
|
||||||
|
public AjaxResult rfidCodeQuery(@RequestBody BackApplyInfo record) {
|
||||||
|
try {
|
||||||
|
List<BackApplyInfo> list =backReceiveService.rfidCodeQuery(record);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Log(title = "退料接收记录", businessType = BusinessType.INSERT)
|
@Log(title = "退料接收记录", businessType = BusinessType.INSERT)
|
||||||
@PostMapping("backReceiveRecord")
|
@PostMapping("backReceiveRecord")
|
||||||
public AjaxResult backReceiveRecord(@RequestBody BackApplyInfo record) {
|
public AjaxResult backReceiveRecord(@RequestBody BackApplyInfo record) {
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,14 @@ public class BackApplyInfo {
|
||||||
private List<BackApplyInfo> backApplyDetails;
|
private List<BackApplyInfo> backApplyDetails;
|
||||||
private Integer parentId;
|
private Integer parentId;
|
||||||
private String sdStatus;
|
private String sdStatus;
|
||||||
|
/**
|
||||||
|
* 二维码编码
|
||||||
|
*/
|
||||||
private String qrCode;
|
private String qrCode;
|
||||||
|
/**
|
||||||
|
* rfid编码
|
||||||
|
*/
|
||||||
|
private String rfidCode;
|
||||||
private String repairedNum;
|
private String repairedNum;
|
||||||
private String backId;
|
private String backId;
|
||||||
private String repairer;
|
private String repairer;
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,11 @@ public interface BackReceiveMapper {
|
||||||
List<BackApplyInfo> backReceiveRecord(BackApplyInfo record);
|
List<BackApplyInfo> backReceiveRecord(BackApplyInfo record);
|
||||||
|
|
||||||
int selectCodeByMaIdAndTaskId(@Param("maId") Integer maId,@Param("taskId") Integer taskId);
|
int selectCodeByMaIdAndTaskId(@Param("maId") Integer maId,@Param("taskId") Integer taskId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退料接收-rfid编码查询
|
||||||
|
* @param record
|
||||||
|
* @return List<BackApplyInfo>
|
||||||
|
*/
|
||||||
|
List<BackApplyInfo> rfidCodeQuery(BackApplyInfo record);
|
||||||
}
|
}
|
||||||
|
|
@ -21,4 +21,11 @@ public interface BackReceiveService {
|
||||||
List<BackApplyInfo> qrcodeQuery(BackApplyInfo record);
|
List<BackApplyInfo> qrcodeQuery(BackApplyInfo record);
|
||||||
|
|
||||||
List<BackApplyInfo> backReceiveRecord(BackApplyInfo record);
|
List<BackApplyInfo> backReceiveRecord(BackApplyInfo record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退料接收-rfid编码查询
|
||||||
|
* @param record
|
||||||
|
* @return List<BackApplyInfo>
|
||||||
|
*/
|
||||||
|
List<BackApplyInfo> rfidCodeQuery(BackApplyInfo record);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,11 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
||||||
return backReceiveMapper.backReceiveRecord(record);
|
return backReceiveMapper.backReceiveRecord(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BackApplyInfo> rfidCodeQuery(BackApplyInfo record) {
|
||||||
|
return backReceiveMapper.rfidCodeQuery(record);
|
||||||
|
}
|
||||||
|
|
||||||
private int insertRad(int taskId, List<BackApplyInfo> wxList) {
|
private int insertRad(int taskId, List<BackApplyInfo> wxList) {
|
||||||
int result = 0;
|
int result = 0;
|
||||||
if(wxList !=null){
|
if(wxList !=null){
|
||||||
|
|
|
||||||
|
|
@ -749,5 +749,22 @@
|
||||||
AND bai.task_id = #{taskId}
|
AND bai.task_id = #{taskId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="rfidCodeQuery" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||||
|
SELECT
|
||||||
|
mt.type_id as typeId,
|
||||||
|
mm.ma_id as maId,
|
||||||
|
mm.ma_code as maCode,
|
||||||
|
mt.type_name as typeCode,
|
||||||
|
mt2.type_name as typeName,
|
||||||
|
sd.`name` as sdStatus
|
||||||
|
FROM
|
||||||
|
ma_machine mm
|
||||||
|
LEFT JOIN ma_type mt on mt.type_id=mm.type_id
|
||||||
|
LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
|
||||||
|
LEFT JOIN sys_dic sd on mm.ma_status=sd.id
|
||||||
|
WHERE
|
||||||
|
rfid_code =#{rfidCode}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -163,6 +163,11 @@ public class PurchasePartDetails extends BaseEntity
|
||||||
@ApiModelProperty(value = "关键字筛选")
|
@ApiModelProperty(value = "关键字筛选")
|
||||||
private String keyWord;
|
private String keyWord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交入库时间
|
||||||
|
*/
|
||||||
|
private String submitStorageTime;
|
||||||
|
|
||||||
public void setTaskId(Long taskId)
|
public void setTaskId(Long taskId)
|
||||||
{
|
{
|
||||||
this.taskId = taskId;
|
this.taskId = taskId;
|
||||||
|
|
@ -447,6 +452,14 @@ public class PurchasePartDetails extends BaseEntity
|
||||||
this.createTime = createTime;
|
this.createTime = createTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSubmitStorageTime() {
|
||||||
|
return submitStorageTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSubmitStorageTime(String submitStorageTime) {
|
||||||
|
this.submitStorageTime = submitStorageTime;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue