车型项目库数据传递bug修改~~
This commit is contained in:
+2
-2
@@ -114,14 +114,14 @@ public class SarStandProjectLibraryController extends BaseController<SarStandPro
|
|||||||
@GetMapping("/queryStandInfo")
|
@GetMapping("/queryStandInfo")
|
||||||
@ApiOperation("查询标准信息")
|
@ApiOperation("查询标准信息")
|
||||||
public ResponseMessage queryStandInfo(@RequestParam(defaultValue = "1", value = "current")int current, @RequestParam(defaultValue = "10", value = "PageSize") int pageSize,
|
public ResponseMessage queryStandInfo(@RequestParam(defaultValue = "1", value = "current")int current, @RequestParam(defaultValue = "10", value = "PageSize") int pageSize,
|
||||||
String id){
|
String id,String cars){
|
||||||
// List<SarStandProjectLibrary> list = sarStandProjectLibraryService.queryStandId(id);
|
// List<SarStandProjectLibrary> list = sarStandProjectLibraryService.queryStandId(id);
|
||||||
// List<String> list1 = new ArrayList();
|
// List<String> list1 = new ArrayList();
|
||||||
// for(SarStandProjectLibrary s:list){
|
// for(SarStandProjectLibrary s:list){
|
||||||
// list1.add(s.getStandId());
|
// list1.add(s.getStandId());
|
||||||
// }
|
// }
|
||||||
// System.out.println(list1);
|
// System.out.println(list1);
|
||||||
IPage<StandAttrInfoDto> list = sarStandProjectLibraryService.queryStandInfo(current,pageSize,id);
|
IPage<StandAttrInfoDto> list = sarStandProjectLibraryService.queryStandInfo(current,pageSize,id,cars);
|
||||||
return Result.success("200",list);
|
return Result.success("200",list);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
@@ -25,4 +25,5 @@ public interface SarStandProjectLibraryDao extends BaseMapper<SarStandProjectLib
|
|||||||
List<SarStandProjectLibrary> selectPagesWorkFlow(@Param("page")Integer page, @Param("size")Integer size,@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
List<SarStandProjectLibrary> selectPagesWorkFlow(@Param("page")Integer page, @Param("size")Integer size,@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
||||||
Integer selectCountWorkFlow(@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
Integer selectCountWorkFlow(@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
||||||
List<String> getAllStands();
|
List<String> getAllStands();
|
||||||
|
List<String> getAllStand();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ public interface SarStandProjectLibraryService {
|
|||||||
IPage<SarStandProjectLibrary> queryProjectManager(int current, int pageSize);
|
IPage<SarStandProjectLibrary> queryProjectManager(int current, int pageSize);
|
||||||
List<SarStandProjectLibrary> queryByProductLine(String productLine);
|
List<SarStandProjectLibrary> queryByProductLine(String productLine);
|
||||||
List<SarStandProjectLibrary> queryStandId(String standId);
|
List<SarStandProjectLibrary> queryStandId(String standId);
|
||||||
IPage<StandAttrInfoDto> queryStandInfo(int current, int pageSize, String standId);
|
IPage<StandAttrInfoDto> queryStandInfo(int current, int pageSize, String standId, String cars);
|
||||||
void deleteByIds(List<StandProjectRelationDto> ids);
|
void deleteByIds(List<StandProjectRelationDto> ids);
|
||||||
void batchInsert(@Param("ids") List<StandProjectRelationDto> list);
|
void batchInsert(@Param("ids") List<StandProjectRelationDto> list);
|
||||||
List<StandAttrInfoDto> exportStandAttrInfoExcel(StandAttrInfoExcelDto standAttrInfoExcelDto,String standId);
|
List<StandAttrInfoDto> exportStandAttrInfoExcel(StandAttrInfoExcelDto standAttrInfoExcelDto,String standId);
|
||||||
|
|||||||
+13
-2
@@ -13,6 +13,8 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import redis.clients.jedis.ScanResult;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
@@ -159,8 +161,17 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public IPage<StandAttrInfoDto> queryStandInfo(int current, int pageSize, String standId) {
|
public IPage<StandAttrInfoDto> queryStandInfo(int current, int pageSize, String standId, String cars) {
|
||||||
List<String> ids=sarStandProjectLibraryDao.getAllStands();
|
|
||||||
|
System.out.println(cars);
|
||||||
|
List<String> ids =new ArrayList<>();
|
||||||
|
if ("1".equals(cars)){
|
||||||
|
ids=sarStandProjectLibraryDao.getAllStand();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ids=sarStandProjectLibraryDao.getAllStands();
|
||||||
|
}
|
||||||
|
|
||||||
String id="";
|
String id="";
|
||||||
for (String s:ids) {
|
for (String s:ids) {
|
||||||
id="'"+s+"',"+id;
|
id="'"+s+"',"+id;
|
||||||
|
|||||||
+5
-1
@@ -249,6 +249,10 @@
|
|||||||
)
|
)
|
||||||
</select>
|
</select>
|
||||||
<select id="getAllStands" resultType="java.lang.String">
|
<select id="getAllStands" resultType="java.lang.String">
|
||||||
SELECT DISTINCT ID FROM sar_standards_info
|
SELECT DISTINCT STAND_ID FROM sar_stand_items
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getAllStand" resultType="java.lang.String">
|
||||||
|
SELECT DISTINCT ID FROM sar_standards_info where VALID_FLAG=0
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user