增加空货位盘点拍照返回功能
parent
90a8d47e2d
commit
a6d57218e8
@ -0,0 +1,72 @@
|
||||
package com.zhehekeji.web.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@TableName("empty_check_pic")
|
||||
@Data
|
||||
public class EmptyCheckPic {
|
||||
private String inputString;
|
||||
private String fixedValue = "UL";
|
||||
private String laneNumber;
|
||||
private String leftOrRight;
|
||||
|
||||
@TableField("`row`")
|
||||
private String row;
|
||||
|
||||
@TableField("`column`")
|
||||
private String column;
|
||||
|
||||
private String depth;
|
||||
|
||||
private String end = "11";
|
||||
private String taskCode ;
|
||||
|
||||
private String deepPic ;
|
||||
|
||||
private String shallowPic ;
|
||||
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime creatTime ;
|
||||
public EmptyCheckPic(){
|
||||
|
||||
}
|
||||
|
||||
public EmptyCheckPic(String inputString,String taskCode,String srmNumber) {
|
||||
this.inputString = inputString;
|
||||
this.taskCode = taskCode;
|
||||
creatTime = LocalDateTime.now();
|
||||
parseInputString();
|
||||
laneNumber = srmNumber;
|
||||
}
|
||||
|
||||
private void parseInputString() {
|
||||
if (inputString.length() >= 14) {
|
||||
fixedValue = inputString.substring(0, 2);
|
||||
laneNumber = inputString.substring(2, 4);
|
||||
leftOrRight = inputString.substring(4, 5);
|
||||
column = inputString.substring(5, 8);
|
||||
row = inputString.substring(8, 10);
|
||||
depth = inputString.substring(10, 12);
|
||||
end = inputString.substring(12);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static String getShelfCodeEntityConverter(List<EmptyCheckPic> list,String webPicPath) {
|
||||
|
||||
StringBuffer stringBuffer = new StringBuffer(list.get(0).getInputString());
|
||||
for (EmptyCheckPic shelfCodeEntityConverter :list){
|
||||
stringBuffer.append(",");
|
||||
stringBuffer.append(webPicPath + shelfCodeEntityConverter.getShallowPic()).append("*").append((shelfCodeEntityConverter.getDeepPic()!=null) ? webPicPath + shelfCodeEntityConverter.getDeepPic():webPicPath +shelfCodeEntityConverter.getShallowPic());
|
||||
}
|
||||
stringBuffer.append("$");
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
package com.zhehekeji.web.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zhehekeji.web.entity.EmptyCheck;
|
||||
import com.zhehekeji.web.entity.EmptyCheckPic;
|
||||
|
||||
public interface EmptyCheckPicMapper extends BaseMapper<EmptyCheckPic> {
|
||||
}
|
||||
Loading…
Reference in New Issue