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) @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 credit;
/**
*
*/
private String id;
} }

View File

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