新添文本信息接口
This commit is contained in:
+9
@@ -135,4 +135,13 @@ public class SarStandFileEOController extends BaseController<SarStandFileEO> {
|
|||||||
return Result.success(getPageInfo(page.getPager(), rows));
|
return Result.success(getPageInfo(page.getPager(), rows));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "查询文本信息")
|
||||||
|
@GetMapping("/queryFileInfo")
|
||||||
|
public ResponseMessage<List<SarStandFileEO>> queryFileInfo(String standId){
|
||||||
|
|
||||||
|
List<SarStandFileEO> sarStandFileEOS = sarStandFileEOService.selectFileByStandId(standId);
|
||||||
|
return Result.success(sarStandFileEOS);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
package com.adc.da.slrs.standardSplit.entity;
|
package com.adc.da.slrs.standardSplit.entity;
|
||||||
|
|
||||||
import com.adc.da.base.entity.BaseEntity;
|
import com.adc.da.base.entity.BaseEntity;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -12,14 +17,22 @@ import java.util.List;
|
|||||||
* <b>日期:</b> 2018-09-03 <br>
|
* <b>日期:</b> 2018-09-03 <br>
|
||||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sar_stand_file")
|
||||||
public class SarStandFileEO extends BaseEntity {
|
public class SarStandFileEO extends BaseEntity {
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
private Date modifyTime;
|
private Date modifyTime;
|
||||||
|
@TableField(exist = false)
|
||||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
private Date creationTime;
|
private Date creationTime;
|
||||||
|
@TableLogic(value = "0",delval = "1")
|
||||||
private String validFlag;
|
private String validFlag;
|
||||||
|
|
||||||
|
@TableField("USE_MODEL")
|
||||||
private String useModel;
|
private String useModel;
|
||||||
|
@TableField("ATT_ID")
|
||||||
private String attId;
|
private String attId;
|
||||||
|
|
||||||
public String getAttId1() {
|
public String getAttId1() {
|
||||||
@@ -29,23 +42,39 @@ public class SarStandFileEO extends BaseEntity {
|
|||||||
public void setAttId1(String attId1) {
|
public void setAttId1(String attId1) {
|
||||||
this.attId1 = attId1;
|
this.attId1 = attId1;
|
||||||
}
|
}
|
||||||
|
@TableField(exist = false)
|
||||||
private String attId1;
|
private String attId1;
|
||||||
|
@TableField(exist = false)
|
||||||
private String resId;
|
private String resId;
|
||||||
|
@TableField("STAND_ID")
|
||||||
private String standId;
|
private String standId;
|
||||||
|
@TableId("id")
|
||||||
private String id;
|
private String id;
|
||||||
|
@TableField(exist = false)
|
||||||
private Integer pageCount;
|
private Integer pageCount;
|
||||||
|
@TableField(exist = false)
|
||||||
private String fileOldName;
|
private String fileOldName;
|
||||||
|
@TableField(exist = false)
|
||||||
private List<String> idlist = new ArrayList<>();
|
private List<String> idlist = new ArrayList<>();
|
||||||
|
@TableField("STAND_FILE_CLASSIFY")
|
||||||
private String standFileClassify;
|
private String standFileClassify;
|
||||||
|
@TableField(exist = false)
|
||||||
private String standFileClassifyShow;
|
private String standFileClassifyShow;
|
||||||
|
@TableField(exist = false)
|
||||||
private String fileSuffix;
|
private String fileSuffix;
|
||||||
|
@TableField("FILE_NAME")
|
||||||
private String fileName;
|
private String fileName;
|
||||||
|
@TableField(exist = false)
|
||||||
private String password;
|
private String password;
|
||||||
|
@TableField(exist = false)
|
||||||
private String creationUser;
|
private String creationUser;
|
||||||
|
@TableField(exist = false)
|
||||||
private String standNumber;
|
private String standNumber;
|
||||||
|
@TableField(exist = false)
|
||||||
private String standName;
|
private String standName;
|
||||||
|
@TableField(exist = false)
|
||||||
private String sarType;
|
private String sarType;
|
||||||
|
@TableField("ORI_ATT_ID")
|
||||||
private String oriAttId;
|
private String oriAttId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -103,7 +132,7 @@ public class SarStandFileEO extends BaseEntity {
|
|||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** **/
|
/** **/
|
||||||
public Date getModifyTime() {
|
public Date getModifyTime() {
|
||||||
return this.modifyTime;
|
return this.modifyTime;
|
||||||
|
|||||||
+3
@@ -22,4 +22,7 @@ public interface SarStandFileEOService {
|
|||||||
int deleteByPrimaryKey(String id) throws Exception;
|
int deleteByPrimaryKey(String id) throws Exception;
|
||||||
|
|
||||||
List<SarStandFileEO> selectFileByAttId(String attId) throws Exception;
|
List<SarStandFileEO> selectFileByAttId(String attId) throws Exception;
|
||||||
|
|
||||||
|
List<SarStandFileEO> selectFileByStandId(String standId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+9
@@ -5,6 +5,7 @@ import com.adc.da.slrs.standardSplit.dao.SarStandFileEODao;
|
|||||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
||||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
||||||
import com.adc.da.slrs.standardSplit.service.SarStandFileEOService;
|
import com.adc.da.slrs.standardSplit.service.SarStandFileEOService;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -63,4 +64,12 @@ public class SarStandFileEOServiceImpl implements SarStandFileEOService {
|
|||||||
return sarStandFileEODao.selectFileByAttId(attId);
|
return sarStandFileEODao.selectFileByAttId(attId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<SarStandFileEO> selectFileByStandId(String standId) {
|
||||||
|
QueryWrapper<SarStandFileEO> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.eq("STAND_ID",standId).groupBy("ORI_ATT_ID");
|
||||||
|
return sarStandFileEODao.selectList(queryWrapper);
|
||||||
|
// return sarStandFileEODao.selectFileByStandId(standId);r
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user