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