fix:() 优化任务调动方法

master
Yueng 2024-09-10 19:31:10 +08:00
parent a58867b904
commit 94cad317c8
2 changed files with 13 additions and 7 deletions

View File

@ -30,7 +30,7 @@ public class ProductData extends BaseEntity {
* /
*/
@TableId(value = "id",type = IdType.AUTO)
private Integer id;
private Integer pid;
/**
*
@ -72,5 +72,10 @@ public class ProductData extends BaseEntity {
*/
private String credit;
/**
*
*/
private String id;
}

View File

@ -75,9 +75,9 @@ public class DataSourceServiceImpl
while (rs.next()) {
int id = 0;
if (substring.contains("id")){
id = rs.getInt("id");
int pid = 0;
if (substring.contains("pid")){
pid = rs.getInt("pid");
}
String name = (rs.getString("COLUMN_NAME"));
String gender = (rs.getString("gender"));
@ -87,10 +87,11 @@ public class DataSourceServiceImpl
String idCard = (rs.getString("idCard"));
String email = (rs.getString("email"));
String credit = (rs.getString("credit"));
ProductData productData = new ProductData(
id,name,gender,birthday,address,mibile,idCard,email,credit
String id = (rs.getString("id"));
ProductData productDatas = new ProductData(
pid,name,gender,birthday,address,mibile,idCard,email,credit,id
);
productData.add(productData);
productData.add(productDatas);
}
if (!rs.next()){
break;