Merge branch 'develop_master' into develop_3

This commit is contained in:
super_liu
2021-08-18 14:00:03 +08:00
7 changed files with 132 additions and 0 deletions
@@ -196,4 +196,12 @@ public class SarStandProjectLibraryController extends BaseController<SarStandPro
response.getWriter().println(JSON.toJSONString(Result.error()));
}
}
@PostMapping("/save")
@ApiOperation("同步车型项目数据")
public ResponseMessage save(@RequestBody List<SarStandProjectLibrary> list){
sarStandProjectLibraryService.saveBatch(list);
return Result.success("200","新增成功",list);
}
}
@@ -0,0 +1,43 @@
package com.adc.da.slrs.sarStandProjectTeam.controller;
import com.adc.da.http.ResponseMessage;
import com.adc.da.http.Result;
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary;
import com.adc.da.slrs.sarStandProjectTeam.service.ISarStandProjectTeamService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import com.adc.da.slrs.sarStandProjectTeam.entity.SarStandProjectTeam;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RestController;
import com.adc.da.base.web.BaseController;
import java.util.List;
/**
* <p>
* 前端控制器
* </p>
*
* @author wangxiahui
* @since 2021-08-10
*/
@RestController
@Api(description = "|SarStandProjectTeam|")
@RequestMapping("/slrs/sar-stand-project-team")
public class SarStandProjectTeamController extends BaseController<SarStandProjectTeam> {
@Autowired
private ISarStandProjectTeamService sarStandProjectTeamService;
@PostMapping("/save")
@ApiOperation("同步PCMS组织信息")
public ResponseMessage save(@RequestBody List<SarStandProjectTeam> list){
sarStandProjectTeamService.saveBatch(list);
return Result.success("200","新增成功",list);
}
}
@@ -0,0 +1,16 @@
package com.adc.da.slrs.sarStandProjectTeam.dao;
import com.adc.da.slrs.sarStandProjectTeam.entity.SarStandProjectTeam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author wangxiahui
* @since 2021-08-10
*/
public interface SarStandProjectTeamDao extends BaseMapper<SarStandProjectTeam> {
}
@@ -0,0 +1,24 @@
package com.adc.da.slrs.sarStandProjectTeam.entity;
import com.adc.da.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SarStandProjectTeam对象", description="")
public class SarStandProjectTeam extends BaseEntity {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String person;
}
@@ -0,0 +1,16 @@
package com.adc.da.slrs.sarStandProjectTeam.service;
import com.adc.da.slrs.sarStandProjectTeam.entity.SarStandProjectTeam;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author wangxiahui
* @since 2021-08-10
*/
public interface ISarStandProjectTeamService extends IService<SarStandProjectTeam> {
}
@@ -0,0 +1,20 @@
package com.adc.da.slrs.sarStandProjectTeam.service.impl;
import com.adc.da.slrs.sarStandProjectTeam.entity.SarStandProjectTeam;
import com.adc.da.slrs.sarStandProjectTeam.dao.SarStandProjectTeamDao;
import com.adc.da.slrs.sarStandProjectTeam.service.ISarStandProjectTeamService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author wangxiahui
* @since 2021-08-10
*/
@Service
public class SarStandProjectTeamServiceImpl extends ServiceImpl<SarStandProjectTeamDao, SarStandProjectTeam> implements ISarStandProjectTeamService {
}
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.sarStandProjectTeam.dao.SarStandProjectTeamDao">
</mapper>