Commit 52ca8c1c authored by 曹盼盼's avatar 曹盼盼

修改es

parent 365e8a03
......@@ -9,6 +9,8 @@ import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.util.Date;
/**
* @Author cpp
* @Description
......@@ -69,6 +71,9 @@ public class ESEquipmentCategoryDto {
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String STATUS;
@Field(type = FieldType.Date, format = DateFormat.basic_date_time, index = false)
private Date REC_DATE;
}
......@@ -329,7 +329,7 @@ public class EquipmentCategoryController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/viewJgAll")
@ApiOperation(httpMethod = "GET", value = "viewJgAll", notes = "viewJgAll")
public ResponseModel<Page<ESEquipmentCategoryDto>> viewJgAll( @RequestParam Map<String,Object> map) {
public ResponseModel<Page<JSONObject>> viewJgAll( @RequestParam Map<String,Object> map) {
JSONObject jsonObject = new JSONObject(map);
return ResponseHelper.buildResponse(equipmentCategoryServiceImpl.queryByKeys(jsonObject));
}
......
spring.application.name=TZS-cpp
spring.application.name=TZS
server.servlet.context-path=/tzs
server.port=11000
spring.profiles.active=dev3
......@@ -10,7 +10,7 @@ mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
##liquibase
spring.liquibase.change-log = classpath:/db/changelog/changelog-master.xml
spring.liquibase.enabled= false
spring.liquibase.enabled= true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment