数据代码优化
parent
d5f9650009
commit
85e313a222
|
@ -1,6 +1,8 @@
|
|||
package com.zcloud.modules.data.entity.data;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
@ -20,6 +22,7 @@ import java.util.Date;
|
|||
public class DataEmployeeLocationEntity extends Model<DataEmployeeLocationEntity> {
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "业务数据id")
|
||||
|
|
|
@ -386,6 +386,9 @@ public class BusDataServiceImpl implements BusDataService {
|
|||
|
||||
});
|
||||
}
|
||||
result.forEach(dto -> {
|
||||
dto.put("id",dto.get("id")+"");
|
||||
});
|
||||
|
||||
return new PageUtils(result, total, req.getLimit(), req.getCurPage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue