fix:() 优化任务调动方法
parent
a58867b904
commit
94cad317c8
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue