返修工艺完善
parent
56363c66c2
commit
ae1b88d218
@ -0,0 +1,37 @@
|
|||||||
|
package com.foreverwin.mesnac.dispatch.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class ResultData {
|
||||||
|
private String question;
|
||||||
|
private String prctureAdress;
|
||||||
|
private String router;
|
||||||
|
|
||||||
|
public String getRouter() {
|
||||||
|
return router;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouter(String router) {
|
||||||
|
this.router = router;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQuestion() {
|
||||||
|
return question;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuestion(String question) {
|
||||||
|
this.question = question;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getPrctureAdress() {
|
||||||
|
return prctureAdress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrctureAdress(String prctureAdress) {
|
||||||
|
this.prctureAdress = prctureAdress;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,229 @@
|
|||||||
|
package com.foreverwin.mesnac.meapi.dto;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zjw
|
||||||
|
* @since 2021-09-09
|
||||||
|
*/
|
||||||
|
|
||||||
|
@TableName("Z_UPLOAD_PICTURES")
|
||||||
|
|
||||||
|
public class UploadPicturesDto extends Model<UploadPicturesDto> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||||
|
private String handle;
|
||||||
|
/**
|
||||||
|
* 站点
|
||||||
|
*/
|
||||||
|
@TableField("SITE")
|
||||||
|
private String site;
|
||||||
|
/**
|
||||||
|
* 图片路径
|
||||||
|
*/
|
||||||
|
@TableField("PICTURE_PATH")
|
||||||
|
private String picturePath;
|
||||||
|
/**
|
||||||
|
* 图片路径详细地址
|
||||||
|
*/
|
||||||
|
@TableField("PICTURE_ADDRESS")
|
||||||
|
private String pictureAddress;
|
||||||
|
/**
|
||||||
|
* 单号
|
||||||
|
*/
|
||||||
|
@TableField("OBJECT_BO")
|
||||||
|
private String objectBo;
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
@TableField("NUM")
|
||||||
|
private String num;
|
||||||
|
/**
|
||||||
|
* 类型
|
||||||
|
*/
|
||||||
|
@TableField("TYPE")
|
||||||
|
private String type;
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
@TableField("CREATED_USER")
|
||||||
|
private String createdUser;
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField("CREATED_DATE_TIME")
|
||||||
|
private LocalDateTime createdDateTime;
|
||||||
|
/**
|
||||||
|
* 修改人
|
||||||
|
*/
|
||||||
|
@TableField("MODIFIED_USER")
|
||||||
|
private String modifiedUser;
|
||||||
|
/**
|
||||||
|
* 修改日期
|
||||||
|
*/
|
||||||
|
@TableField("MODIFIED_DATE_TIME")
|
||||||
|
private LocalDateTime modifiedDateTime;
|
||||||
|
@TableField("STATUS")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
|
||||||
|
public String getHandle() {
|
||||||
|
return handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHandle(String handle) {
|
||||||
|
this.handle = handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSite() {
|
||||||
|
return site;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSite(String site) {
|
||||||
|
this.site = site;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPicturePath() {
|
||||||
|
return picturePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPicturePath(String picturePath) {
|
||||||
|
this.picturePath = picturePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPictureAddress() {
|
||||||
|
return pictureAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPictureAddress(String pictureAddress) {
|
||||||
|
this.pictureAddress = pictureAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getObjectBo() {
|
||||||
|
return objectBo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjectBo(String objectBo) {
|
||||||
|
this.objectBo = objectBo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNum() {
|
||||||
|
return num;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNum(String num) {
|
||||||
|
this.num = num;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreatedUser() {
|
||||||
|
return createdUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedUser(String createdUser) {
|
||||||
|
this.createdUser = createdUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getCreatedDateTime() {
|
||||||
|
return createdDateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedDateTime(LocalDateTime createdDateTime) {
|
||||||
|
this.createdDateTime = createdDateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getModifiedUser() {
|
||||||
|
return modifiedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModifiedUser(String modifiedUser) {
|
||||||
|
this.modifiedUser = modifiedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getModifiedDateTime() {
|
||||||
|
return modifiedDateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModifiedDateTime(LocalDateTime modifiedDateTime) {
|
||||||
|
this.modifiedDateTime = modifiedDateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final String HANDLE = "HANDLE";
|
||||||
|
|
||||||
|
public static final String SITE = "SITE";
|
||||||
|
|
||||||
|
public static final String PICTURE_PATH = "PICTURE_PATH";
|
||||||
|
|
||||||
|
public static final String PICTURE_ADDRESS = "PICTURE_ADDRESS";
|
||||||
|
|
||||||
|
public static final String OBJECT_BO = "OBJECT_BO";
|
||||||
|
|
||||||
|
public static final String NUM = "NUM";
|
||||||
|
|
||||||
|
public static final String TYPE = "TYPE";
|
||||||
|
|
||||||
|
public static final String CREATED_USER = "CREATED_USER";
|
||||||
|
|
||||||
|
public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";
|
||||||
|
|
||||||
|
public static final String MODIFIED_USER = "MODIFIED_USER";
|
||||||
|
|
||||||
|
public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
|
||||||
|
|
||||||
|
public static final String STATUS = "STATUS";
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Serializable pkVal() {
|
||||||
|
return this.handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "UploadPictures{" +
|
||||||
|
"handle = " + handle +
|
||||||
|
", site = " + site +
|
||||||
|
", picturePath = " + picturePath +
|
||||||
|
", pictureAddress = " + pictureAddress +
|
||||||
|
", objectBo = " + objectBo +
|
||||||
|
", num = " + num +
|
||||||
|
", type = " + type +
|
||||||
|
", createdUser = " + createdUser +
|
||||||
|
", createdDateTime = " + createdDateTime +
|
||||||
|
", modifiedUser = " + modifiedUser +
|
||||||
|
", modifiedDateTime = " + modifiedDateTime +
|
||||||
|
", status = " + status +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.foreverwin.mesnac.meapi.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.foreverwin.mesnac.meapi.dto.UploadPicturesDto;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zjw
|
||||||
|
* @since 2021-09-09
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface PicturesMapper extends BaseMapper<UploadPicturesDto> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.foreverwin.mesnac.meapi.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.foreverwin.mesnac.meapi.dto.UploadPicturesDto;
|
||||||
|
import com.foreverwin.modular.core.util.FrontPage;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zjw
|
||||||
|
* @since 2021-09-09
|
||||||
|
*/
|
||||||
|
public interface PicturesService extends IService<UploadPicturesDto> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询
|
||||||
|
* @param frontPage
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
IPage<UploadPicturesDto> selectPage(FrontPage<UploadPicturesDto> frontPage, UploadPicturesDto uploadPictures);
|
||||||
|
|
||||||
|
List<UploadPicturesDto> selectList(UploadPicturesDto uploadPictures);
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.foreverwin.mesnac.meapi.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
|
||||||
|
import com.foreverwin.mesnac.meapi.dto.UploadPicturesDto;
|
||||||
|
import com.foreverwin.mesnac.meapi.mapper.PicturesMapper;
|
||||||
|
import com.foreverwin.mesnac.meapi.service.PicturesService;
|
||||||
|
import com.foreverwin.modular.core.util.FrontPage;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zjw
|
||||||
|
* @since 2021-09-09
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public class PicturesServiceImpl extends ServiceImpl<PicturesMapper, UploadPicturesDto> implements PicturesService {
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PicturesMapper uploadPicturesMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<UploadPicturesDto> selectPage(FrontPage<UploadPicturesDto> frontPage, UploadPicturesDto uploadPictures) {
|
||||||
|
QueryWrapper<UploadPicturesDto> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.setEntity(uploadPictures);
|
||||||
|
return super.page(frontPage.getPagePlus(), queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<UploadPicturesDto> selectList(UploadPicturesDto uploadPictures) {
|
||||||
|
QueryWrapper<UploadPicturesDto> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.setEntity(uploadPictures);
|
||||||
|
return super.list(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue