| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | import com.yuanchu.mom.service.OpinionService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | | import com.yuanchu.mom.utils.Jwt; |
| | | import com.yuanchu.mom.utils.MyUtil; |
| | | import com.yuanchu.mom.utils.RedisUtil; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.yuanchu.mom.service.InspectUnacceptedService; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private InspectUnacceptedService inspectUnacceptedService; |
| | | |
| | | @Autowired |
| | | private Jwt jwt; |
| | | |
| | | @Autowired |
| | | private OpinionService opinionService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢æåä¸åæ ¼åæ£éªåå表", tags = "QMS管ç-->ä¸åæ ¼å管ç") |
| | | @ApiImplicitParams(value = { |
| | |
| | | @ApiImplicitParam(name = "countSize",value = "æ¡æ°/页",dataTypeClass = Integer.class,required = true), |
| | | @ApiImplicitParam(name = "specificationModel",value = "è§æ ¼åå·",dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "productName",value = "产ååç§°",dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "productCategories",value = "产å大类",dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "productCategories",value = "产å大类",dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "state",value = "ç¶æ",dataTypeClass = Integer.class) |
| | | }) |
| | | @GetMapping("/selectDisposal") |
| | | public Result<?> selectDisposal(int pageSize, |
| | | int countSize, |
| | | String specificationModel, |
| | | String productName, |
| | | String productCategories, |
| | | Integer state){ |
| | | int countSize, |
| | | String specificationModel, |
| | | String productName, |
| | | Integer productCategories, |
| | | Integer state){ |
| | | IPage<Map<String, Object>> inspectionPage = inspectUnacceptedService.selectDisposal( |
| | | new Page<Object>(pageSize, countSize), |
| | | specificationModel, |
| | |
| | | map.put("row", inspectionPage.getRecords()); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æè§-->ç¡®å®æé®", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @PostMapping("/addOpinion") |
| | | public Result<?> updateOpinion(@RequestHeader("token") String token, @Validated @RequestBody List<Opinion> opinion) throws Exception { |
| | | Map<String, String> data = JackSonUtil.unmarshal(jwt.readJWT(token).get("data"), Map.class); |
| | | String id = data.get("id").replaceAll("\"", ""); |
| | | opinionService.updateOpinion(id, opinion); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥çç¼è¾æè§", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "rawUnacceptedId",value = "ä¸åæ ¼åå¤ç½®Id",dataTypeClass = Integer.class,required = true) |
| | | }) |
| | | @GetMapping("/viewEditorial") |
| | | public Result<?> viewEditorialComments(Integer rawUnacceptedId) { |
| | | return Result.success(opinionService.viewEditorialComments(rawUnacceptedId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¤±ç¦æ´æ°ç°åæè¿°", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "rawUnacceptedId",value = "ä¸åæ ¼åå¤ç½®Id",dataTypeClass = Integer.class,required = true), |
| | | @ApiImplicitParam(name = "tell",value = "ç°è±¡æè¿°",dataTypeClass = Integer.class,required = true) |
| | | }) |
| | | @GetMapping("/descriptionUpdate") |
| | | public Result<?> descriptionUpdate(Integer rawUnacceptedId, String tell) { |
| | | return Result.success(inspectUnacceptedService.descriptionUpdate(rawUnacceptedId, tell)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¹å»ç¼è¾æè§è§¦åæ¥è¯¢", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "rawUnacceptedId",value = "ä¸åæ ¼åå¤ç½®Id",dataTypeClass = Integer.class,required = true) |
| | | }) |
| | | @PostMapping("/clickEditing") |
| | | public Result<?> clickEditingTriggerQuery(Integer rawUnacceptedId) { |
| | | return Result.success(opinionService.clickEditingTriggerQuery(rawUnacceptedId)); |
| | | } |
| | | } |
| | | |
| | |
| | | void delAllRawIns(String ids); |
| | | |
| | | IPage<Map<String, Object>> selectUnqualifiedRawMaterials(Page<Object> page, String formTime, String productName, String supplier, Integer processingStatus); |
| | | |
| | | IPage<Map<String, Object>> selectDisposal(Page<Object> page, String specificationModel, String productName, Integer productCategories, Integer state); |
| | | } |
| | | |
| | |
| | | package com.yuanchu.mom.mapper; |
| | | |
| | | import com.yuanchu.mom.mybatis_config.MyBaseMapper; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2023-08-07 01:54:28 |
| | | */ |
| | | public interface OpinionMapper extends BaseMapper<Opinion> { |
| | | public interface OpinionMapper extends MyBaseMapper<Opinion> { |
| | | |
| | | List<Map<String, Object>> clickEditingTriggerQuery(Integer rawUnacceptedId); |
| | | |
| | | Integer updateOpinion(List<Opinion> opinion); |
| | | |
| | | List<Map<String, Object>> viewEditorialComments(Integer rawUnacceptedId); |
| | | } |
| | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "0ï¼æåæ£éªåï¼1ï¼åæåæ£éªåï¼2ï¼åæææ£éªå") |
| | | @ApiModelProperty(value = "0ï¼æåæ£éªåï¼åæåæ£éªåï¼1ï¼åæææ£éªå") |
| | | private Integer type; |
| | | |
| | | /** |
| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.*; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import reactor.util.annotation.NonNull; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2023-08-07 01:54:28 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class Opinion implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | /** |
| | | * æè§id |
| | | */ |
| | | @ApiModelProperty(value = "id", required = true, example = "1") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * é¨é¨ç±»å 0ï¼ææ¯é¨ï¼1ï¼ç产é¨ï¼2ï¼è´¨éé¨ï¼3ï¼æ»ç»å |
| | | */ |
| | | @NotNull(message = "é¨é¨ç±»åä¸è½ä¸ºç©º") |
| | | @ApiModelProperty(value = "é¨é¨ç±»å 0ï¼ææ¯é¨ï¼1ï¼ç产é¨ï¼2ï¼è´¨éé¨ï¼3ï¼æ»ç»å", hidden = true, example = "0") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * å¤çæè§ |
| | | */ |
| | | @NotBlank(message = "å¤çæè§ä¸è½ä¸ºç©ºï¼") |
| | | @ApiModelProperty(value = "å¤çæè§", required = true, example = "è¿å·¥") |
| | | private String tell; |
| | | |
| | | /** |
| | | * å¤çæ¹å¼ æ ¼å¼[1,2,3] 0ï¼è¿å·¥ï¼1ï¼è¿ä¿®ï¼2ï¼è®©æ¥æ¥æ¶ï¼3ï¼ææ¶ï¼4ï¼é级使ç¨ï¼5ï¼æ¥åº |
| | | */ |
| | | @NotBlank(message = "å¤çæ¹å¼ä¸è½ä¸ºç©ºï¼") |
| | | @ApiModelProperty(value = "å¤çæ¹å¼ï¼0ï¼è¿å·¥ï¼1ï¼è¿ä¿®ï¼2ï¼è®©æ¥æ¥æ¶ï¼3ï¼ææ¶ï¼4ï¼é级使ç¨ï¼5ï¼æ¥åº", required = true, example = "è¿å·¥") |
| | | private String way; |
| | | |
| | | @ApiModelProperty(value = "é»è¾å é¤", hidden = true) |
| | | @TableLogic(value = "1", delval = "0") |
| | | private Integer state; |
| | | |
| | | /** |
| | | * 填忥æ |
| | | */ |
| | | private LocalDateTime createTime; |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "å建æ¶é´", hidden = true) |
| | | private Date createTime; |
| | | |
| | | private LocalDateTime updateTime; |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´: å³å¡«åæ¥æ", hidden = true) |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * å
³è å¡«å人ï¼ç¨æ·idï¼ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "填忥æ", required = true, example = "2023-09-05", dataType = "date") |
| | | private Date fillDate; |
| | | |
| | | @ApiModelProperty(value = "å¡«å人Id", hidden = true, example = "1") |
| | | private Integer userId; |
| | | |
| | | /** |
| | | * å
³è ä¸åæ ¼ç»è®¡è¡¨id |
| | | */ |
| | | @NotNull(message = "ä¸åæ ¼ç»è®¡è¡¨idè½ä¸ºç©º") |
| | | @ApiModelProperty(value = "ä¸åæ ¼ç»è®¡è¡¨id", hidden = true, example = "2") |
| | | private Integer rawUnacceptedId; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.yuanchu.mom.pojo.InspectUnaccepted; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | * @param state |
| | | * @return |
| | | */ |
| | | IPage<Map<String, Object>> selectDisposal(Page<Object> page, String specificationModel, String productName, String productCategories, Integer state); |
| | | IPage<Map<String, Object>> selectDisposal(Page<Object> page, String specificationModel, String productName, Integer productCategories, Integer state); |
| | | |
| | | /** |
| | | * å¤±ç¦æ´æ°ç°åæè¿° |
| | | * @param rawUnacceptedId |
| | | * @return |
| | | */ |
| | | Integer descriptionUpdate(Integer rawUnacceptedId, String tell); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public interface OpinionService extends IService<Opinion> { |
| | | |
| | | IPage<Map<String, Object>> selectOpinionPage(Page<Object> page, String productName, String specificationsModels); |
| | | @Transactional(rollbackFor = Exception.class) |
| | | List<Map<String, Object>> clickEditingTriggerQuery(Integer rawUnacceptedId); |
| | | |
| | | /** |
| | | * æ¹éæ´æ°æè§ |
| | | * @param id |
| | | * @param opinion |
| | | * @return |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | Integer updateOpinion(String id, List<Opinion> opinion); |
| | | |
| | | /** |
| | | * æ¥çå¤ç½®æè§ |
| | | * @param rawUnacceptedId |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> viewEditorialComments(Integer rawUnacceptedId); |
| | | } |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.mom.mapper.InspectUnacceptedMapper; |
| | | import com.yuanchu.mom.pojo.InspectUnaccepted; |
| | | import com.yuanchu.mom.service.InspectUnacceptedService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> selectDisposal(Page<Object> page, String specificationModel, String productName, String productCategories, Integer state) { |
| | | return null; |
| | | public IPage<Map<String, Object>> selectDisposal(Page<Object> page, String specificationModel, String productName, Integer productCategories, Integer state) { |
| | | return inspectUnacceptedMapper.selectDisposal(page, specificationModel, productName, productCategories, state); |
| | | } |
| | | |
| | | @Override |
| | | public Integer descriptionUpdate(Integer rawUnacceptedId, String tell) { |
| | | LambdaUpdateWrapper<InspectUnaccepted> updateWrapper = Wrappers.<InspectUnaccepted>lambdaUpdate() |
| | | .eq(InspectUnaccepted::getId, rawUnacceptedId) |
| | | .set(InspectUnaccepted::getTell, tell); |
| | | return inspectUnacceptedMapper.update(new InspectUnaccepted(), updateWrapper); |
| | | } |
| | | } |
| | | |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.InspectUnaccepted; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | import com.yuanchu.mom.mapper.OpinionMapper; |
| | | import com.yuanchu.mom.service.OpinionService; |
| | |
| | | import com.yuanchu.mom.utils.MyUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class OpinionServiceImpl extends ServiceImpl<OpinionMapper, Opinion> implements OpinionService { |
| | | |
| | | @Resource |
| | | private OpinionMapper opinionMapper; |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> selectOpinionPage(Page<Object> page, String productName, String specificationsModels) { |
| | | MyUtil.PrintLog(page +"=======" + productName + "===" + specificationsModels); |
| | | return null; |
| | | public List<Map<String, Object>> clickEditingTriggerQuery(Integer rawUnacceptedId) { |
| | | List<Map<String, Object>> mapList = opinionMapper.clickEditingTriggerQuery(rawUnacceptedId); |
| | | if (mapList.size() == 0) { |
| | | List<Opinion> list = new ArrayList<>(); |
| | | for (int i = 0; i <= 3; i++) { |
| | | Opinion opinion = new Opinion() |
| | | .setType(i) |
| | | .setRawUnacceptedId(rawUnacceptedId); |
| | | list.add(opinion); |
| | | } |
| | | opinionMapper.insertBatchSomeColumn(list); |
| | | mapList = opinionMapper.clickEditingTriggerQuery(rawUnacceptedId); |
| | | } |
| | | return mapList; |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateOpinion(String id, List<Opinion> opinion) { |
| | | opinion.forEach(i -> { |
| | | i.setUserId(Integer.valueOf(id)); |
| | | }); |
| | | return opinionMapper.updateOpinion(opinion); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> viewEditorialComments(Integer rawUnacceptedId) { |
| | | return opinionMapper.viewEditorialComments(rawUnacceptedId); |
| | | } |
| | | } |
| | |
| | | </if> |
| | | ORDER BY i.`id` DESC |
| | | </select> |
| | | |
| | | <select id="selectDisposal" resultType="map"> |
| | | SELECT i.`id`, s.`type`, s.name productName, s.`specifications`, s.number, i.`tell` description, |
| | | o.`tell` opinions, s.user_name, DATE_FORMAT(i.`create_time`, '%Y-%m-%d') `date`, i.`deal_state` |
| | | FROM (inspect_unaccepted i, |
| | | ( |
| | | SELECT 2 AS `type`, r.`name`, r.`specifications`, r.`number`, r.`id`, r.`user_name`, 0 AS classify |
| | | FROM raw_inspect r |
| | | WHERE r.state = 1 |
| | | <if test="specificationModel != null and specificationModel != ''"> |
| | | AND r.`specifications` LIKE CONCAT('%', #{specificationModel}, '%') |
| | | </if> |
| | | <if test="productName != null and productName != ''"> |
| | | AND r.`name` LIKE CONCAT('%', #{productName}, '%') |
| | | </if> |
| | | UNION ALL |
| | | SELECT f.`type`, f.`project_name` `name`, f.`specifications_model` specifications, f.`quantity` number, f.`id`, u.name user_name, 1 AS classify |
| | | FROM finished_inspect f, `user` u |
| | | WHERE f.`state` = 1 |
| | | AND u.id = f.user_id |
| | | <if test="specificationModel != null and specificationModel != ''"> |
| | | AND f.`specifications_model` LIKE CONCAT('%', #{specificationModel}, '%') |
| | | </if> |
| | | <if test="productName != null and productName != ''"> |
| | | AND f.`project_name` LIKE CONCAT('%', #{productName}, '%') |
| | | </if> |
| | | ) AS s) |
| | | LEFT JOIN opinion o ON i.`id` = o.`raw_unaccepted_id` |
| | | WHERE i.`state` = 1 |
| | | AND i.`type` = s.`classify` |
| | | AND s.`id` = i.`raw_inspect_id` |
| | | <if test="state != null"> |
| | | AND i.`deal_state` = #{state} |
| | | </if> |
| | | <if test="productCategories != null"> |
| | | AND s.`type` = #{productCategories} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.mom.mapper.OpinionMapper"> |
| | | |
| | | <select id="clickEditingTriggerQuery" resultType="map"> |
| | | SELECT o.`id`, o.`tell`, o.`type`, o.`way`, o.`fill_date` |
| | | FROM opinion o |
| | | LEFT JOIN `user` u ON o.`user_id` = u.`id` |
| | | WHERE o.`raw_unaccepted_id` = #{rawUnacceptedId} |
| | | </select> |
| | | |
| | | <update id="updateOpinion" parameterType="integer"> |
| | | UPDATE opinion o |
| | | <trim prefix="set" suffixOverrides=","> |
| | | <trim prefix="tell=case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | WHEN o.id = #{item.id} THEN #{item.tell} |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="way=case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | WHEN o.id = #{item.id} THEN #{item.way} |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="fill_date=case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | WHEN o.id = #{item.id} THEN #{item.fillDate} |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="user_id=case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | WHEN o.id = #{item.id} THEN #{item.userId} |
| | | </foreach> |
| | | </trim> |
| | | </trim> |
| | | WHERE o.id in |
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> |
| | | #{item.id, jdbcType=BIGINT} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="viewEditorialComments" resultType="map"> |
| | | SELECT o.`tell`, o.`type`, o.`way`, DATE_FORMAT(o.`fill_date`, '%Y-%m-%d') fillDate, u.`name` |
| | | FROM opinion o |
| | | LEFT JOIN `user` u ON o.`user_id` = u.`id` |
| | | WHERE o.raw_unaccepted_id = #{rawUnacceptedId} |
| | | </select> |
| | | </mapper> |
| | |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://192.168.73.113:3306/mom_ocean?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://192.168.65.113:3306/mom_ocean?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8 |
| | | username: user |
| | | password: 123456 |
| | | druid: |
| | |
| | | # redisæ°æ®åºç´¢å¼(é»è®¤ä¸º0)ï¼æä»¬ä½¿ç¨ç´¢å¼ä¸º3çæ°æ®åºï¼é¿å
åå
¶ä»æ°æ®åºå²çª |
| | | database: 0 |
| | | # redisæå¡å¨å°åï¼é»è®¤ä¸ºlocalhostï¼ |
| | | host: 192.168.73.113 |
| | | host: 192.168.65.113 |
| | | # redis端å£ï¼é»è®¤ä¸º6379ï¼ |
| | | port: 6379 |
| | | # redis访é®å¯ç ï¼é»è®¤ä¸ºç©ºï¼ |