Commit 54483a5a authored by yuanshuo's avatar yuanshuo

厂商管理增加字段、以及对应接口修改

parent bd0b6c4f
...@@ -58,4 +58,9 @@ public class AutomobileEnterprise extends BaseEntity ...@@ -58,4 +58,9 @@ public class AutomobileEnterprise extends BaseEntity
@Excel(name = "联系电话") @Excel(name = "联系电话")
@ApiModelProperty("联系电话") @ApiModelProperty("联系电话")
private String contactNumber; private String contactNumber;
/** 联系电话 */
@Excel(name = "企业类型")
@ApiModelProperty("企业类型")
private String enterpriseType;
} }
...@@ -25,5 +25,5 @@ public interface ReviewKeyPointMapper extends BaseMapper<ReviewKeyPoint> { ...@@ -25,5 +25,5 @@ public interface ReviewKeyPointMapper extends BaseMapper<ReviewKeyPoint> {
List<ReviewKeyPointListResponse> getKeyPointList(@Param("standardId") Long standardId); List<ReviewKeyPointListResponse> getKeyPointList(@Param("standardId") Long standardId);
List<ReviewDetailsListResponse> getDetailsList(@Param("keyPointId") Long keyPointId); List<ReviewDetailsListResponse> getDetailsList(@Param("keypointId") Long keypointId);
} }
...@@ -113,6 +113,6 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange ...@@ -113,6 +113,6 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
/* /*
* 发起评审-新增审查场景-获取细则列表 * 发起评审-新增审查场景-获取细则列表
* */ * */
List<ReviewDetailsListResponse> getDetailsList(Long keyPointId); List<ReviewDetailsListResponse> getDetailsList(Long keypointId);
} }
...@@ -494,8 +494,8 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha ...@@ -494,8 +494,8 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
* 发起评审-新增审查场景-获取细则列表 * 发起评审-新增审查场景-获取细则列表
* */ * */
@Override @Override
public List<ReviewDetailsListResponse> getDetailsList(Long keyPointId) { public List<ReviewDetailsListResponse> getDetailsList(Long keypointId) {
return reviewKeyPointMapper.getDetailsList(keyPointId); return reviewKeyPointMapper.getDetailsList(keypointId);
} }
} }
......
...@@ -42,6 +42,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali ...@@ -42,6 +42,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
@Override @Override
public CarReviewTaskViewResponse doView(CarReviewTask carReviewTask) { public CarReviewTaskViewResponse doView(CarReviewTask carReviewTask) {
// 获取最新问卷 // 获取最新问卷
// TODO 从新系统获取
List<ReviewStandard> standardTree = reviewStandardService.findTree(carReviewTask.getStandardId(), ReviewStandard.TYPE_CAR); List<ReviewStandard> standardTree = reviewStandardService.findTree(carReviewTask.getStandardId(), ReviewStandard.TYPE_CAR);
// 将问卷赋值到任务 // 将问卷赋值到任务
......
...@@ -175,7 +175,8 @@ public class ReviewSceneChangeTaskController extends BaseController { ...@@ -175,7 +175,8 @@ public class ReviewSceneChangeTaskController extends BaseController {
@Log(title = "发起评审-新增审查场景-获取要点列表", businessType = BusinessType.UPDATE) @Log(title = "发起评审-新增审查场景-获取要点列表", businessType = BusinessType.UPDATE)
@RequestMapping(method = RequestMethod.POST, value = "/getKeyPointList") @RequestMapping(method = RequestMethod.POST, value = "/getKeyPointList")
public R<List<ReviewKeyPointListResponse>> getKeyPointList(@Validated @RequestBody ReviewKeyPointListRequest request){ public R<List<ReviewKeyPointListResponse>> getKeyPointList(@Validated @RequestBody ReviewKeyPointListRequest request){
List<ReviewKeyPointListResponse> list = reviewSceneChangeTaskService.getKeyPointList(request.getStandardId()); Long id = Long.parseLong(request.getStandardId());
List<ReviewKeyPointListResponse> list = reviewSceneChangeTaskService.getKeyPointList(id);
return R.ok(list); return R.ok(list);
} }
...@@ -188,7 +189,8 @@ public class ReviewSceneChangeTaskController extends BaseController { ...@@ -188,7 +189,8 @@ public class ReviewSceneChangeTaskController extends BaseController {
@Log(title = "发起评审-新增审查场景-获取细则列表", businessType = BusinessType.UPDATE) @Log(title = "发起评审-新增审查场景-获取细则列表", businessType = BusinessType.UPDATE)
@RequestMapping(method = RequestMethod.POST, value = "/getDetailsList") @RequestMapping(method = RequestMethod.POST, value = "/getDetailsList")
public R<List<ReviewDetailsListResponse>> getKeyPointList(@Validated @RequestBody ReviewDetailsListRequest request){ public R<List<ReviewDetailsListResponse>> getKeyPointList(@Validated @RequestBody ReviewDetailsListRequest request){
List<ReviewDetailsListResponse> list = reviewSceneChangeTaskService.getDetailsList(request.getKeyPointId()); Long id = Long.parseLong(request.getKeypointId());
List<ReviewDetailsListResponse> list = reviewSceneChangeTaskService.getDetailsList(id);
return R.ok(list); return R.ok(list);
} }
......
...@@ -33,4 +33,8 @@ public class AutomobileEnterpriseListRequest extends PageDomain { ...@@ -33,4 +33,8 @@ public class AutomobileEnterpriseListRequest extends PageDomain {
@ApiModelProperty("联系电话") @ApiModelProperty("联系电话")
private String contactNumber; private String contactNumber;
/*厂商企业类型*/
@ApiModelProperty
private String enterpriseType;
} }
...@@ -9,5 +9,5 @@ import lombok.Data; ...@@ -9,5 +9,5 @@ import lombok.Data;
public class ReviewDetailsListRequest { public class ReviewDetailsListRequest {
@ApiModelProperty("标准要求id") @ApiModelProperty("标准要求id")
private Long keyPointId; private String keypointId;
} }
...@@ -9,5 +9,5 @@ import lombok.Data; ...@@ -9,5 +9,5 @@ import lombok.Data;
public class ReviewKeyPointListRequest { public class ReviewKeyPointListRequest {
@ApiModelProperty("标准要求id") @ApiModelProperty("标准要求id")
private Long standardId; private String standardId;
} }
...@@ -9,7 +9,7 @@ import lombok.Data; ...@@ -9,7 +9,7 @@ import lombok.Data;
public class ReviewDetailsListResponse { public class ReviewDetailsListResponse {
@ApiModelProperty("主键-要点id") @ApiModelProperty("主键-要点id")
private Long id; private String id;
@ApiModelProperty("要点文本内容") @ApiModelProperty("要点文本内容")
private String text; private String text;
......
...@@ -9,7 +9,7 @@ import lombok.Data; ...@@ -9,7 +9,7 @@ import lombok.Data;
public class ReviewKeyPointListResponse { public class ReviewKeyPointListResponse {
@ApiModelProperty("主键-要点id") @ApiModelProperty("主键-要点id")
private Long id; private String id;
@ApiModelProperty("要点文本内容") @ApiModelProperty("要点文本内容")
private String text; private String text;
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
create_time, create_time,
update_by, update_by,
update_time, update_time,
deleted deleted,
enterprise_type
from t_automobile_enterprise from t_automobile_enterprise
</sql> </sql>
...@@ -44,7 +45,8 @@ ...@@ -44,7 +45,8 @@
ae.create_time, ae.create_time,
ae.update_by, ae.update_by,
ae.update_time, ae.update_time,
ae.deleted ae.deleted,
ae.enterprise_type
from t_automobile_enterprise ae from t_automobile_enterprise ae
left join sys_user su on ae.create_by = su.user_id left join sys_user su on ae.create_by = su.user_id
</sql> </sql>
...@@ -62,6 +64,9 @@ ...@@ -62,6 +64,9 @@
<if test="enterpriseContact != null and enterpriseContact != ''"> <if test="enterpriseContact != null and enterpriseContact != ''">
and ae.enterprise_contact like concat('%', #{enterpriseContact}, '%') and ae.enterprise_contact like concat('%', #{enterpriseContact}, '%')
</if> </if>
<if test="enterpriseType != null and enterpriseType != ''">
and ae.enterprise_type like concat('%', #{enterpriseType}, '%')
</if>
<if test="contactNumber != null and contactNumber != ''">and ae.contact_number like concat('%', #{contactNumber}, '%')</if> <if test="contactNumber != null and contactNumber != ''">and ae.contact_number like concat('%', #{contactNumber}, '%')</if>
</where> </where>
</select> </select>
...@@ -111,6 +116,7 @@ ...@@ -111,6 +116,7 @@
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="enterpriseType != null">enterprise_Type = #{enterpriseType}</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</select> </select>
<select id="getDetailsList" resultType="com.ruoyi.web.response.ReviewDetailsListResponse"> <select id="getDetailsList" resultType="com.ruoyi.web.response.ReviewDetailsListResponse">
select id, text from t_review_details select id, text from t_review_details
where review_keypoint_id = #{keyPointId} where review_keypoint_id = #{keypointId}
</select> </select>
</mapper> </mapper>
...@@ -29,6 +29,7 @@ public class TestUrl { ...@@ -29,6 +29,7 @@ public class TestUrl {
.url("http://10.12.48.80:8089/api/query") .url("http://10.12.48.80:8089/api/query")
.method("POST", body) .method("POST", body)
.addHeader("Content-Type", "application/json") .addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjAsInRva2VuaWQiOjYxLCJ0eXBlIjoiYXBpIiwidXNlcm5hbWUiOiJhZG1pbiJ9.48Ggjx-FtOcecf73vAHn0XglwgLXZlfXxhXiLDHWWQE")
// .addHeader("Host", "10.12.48.80:8089") // .addHeader("Host", "10.12.48.80:8089")
// .addHeader("Origin", "http://10.12.48.80:8089") // .addHeader("Origin", "http://10.12.48.80:8089")
// .addHeader("Referer", "http://10.12.48.80:8089/api/graphql/playground") // .addHeader("Referer", "http://10.12.48.80:8089/api/graphql/playground")
...@@ -44,5 +45,5 @@ public class TestUrl { ...@@ -44,5 +45,5 @@ public class TestUrl {
}); });
} }
} }
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