diff --git a/research-admin/src/main/java/com/research/web/controller/client/achievement/OutcomeController.java b/research-admin/src/main/java/com/research/web/controller/client/achievement/OutcomeController.java index 22d255ea..a4bb1e72 100644 --- a/research-admin/src/main/java/com/research/web/controller/client/achievement/OutcomeController.java +++ b/research-admin/src/main/java/com/research/web/controller/client/achievement/OutcomeController.java @@ -35,7 +35,7 @@ public class OutcomeController { private OutcomeService outcomeService; @PostMapping("/query") - public JsonResponse> queryList(BaseDto query) { + public JsonResponse> queryList(@RequestBody @Validated BaseDto query) { if (query.getPageNum() > 0) { PageHelper.startPage(query.getPageNum(), query.getPageSize()); } @@ -43,13 +43,13 @@ public class OutcomeController { } @PostMapping("/add") - public JsonResponse add(OutcomeDto.Add dto) { + public JsonResponse add(@RequestBody @Validated OutcomeDto.Add dto) { outcomeService.add(dto); return JsonResponse.ok(); } @PostMapping("/del") - public JsonResponse del(CommonDto.DelDto dto) { + public JsonResponse del(@RequestBody @Validated CommonDto.DelDto dto) { outcomeService.del(dto); return JsonResponse.ok(); } diff --git a/research-admin/src/main/java/com/research/web/controller/client/funding/FundingController.java b/research-admin/src/main/java/com/research/web/controller/client/funding/FundingController.java index ea3a5785..a63a1d5b 100644 --- a/research-admin/src/main/java/com/research/web/controller/client/funding/FundingController.java +++ b/research-admin/src/main/java/com/research/web/controller/client/funding/FundingController.java @@ -1,13 +1,56 @@ package com.research.web.controller.client.funding; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.research.common.core.domain.BaseDto; +import com.research.common.core.domain.JsonResponse; +import com.research.system.domain.dto.CommonDto; +import com.research.system.domain.dto.FundingDto; +import com.research.system.domain.vo.FundingVo; +import com.research.system.service.FundingService; +import io.swagger.annotations.Api; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + /** * @Author zzc * @Package com.research.web.controller.client.funding * @Date 2025/8/12 16:28 * @description: */ +@Slf4j +@Api(tags = "经费收支") +@RestController +@RequestMapping("/funding") public class FundingController { + @Resource + private FundingService fundingService; + + @PostMapping("/query") + public JsonResponse> queryList(@RequestBody @Validated BaseDto query){ + if (query.getPageNum() > 0) { + PageHelper.startPage(query.getPageNum(), query.getPageSize()); + } + return JsonResponse.ok(new PageInfo<>(fundingService.queryList(query.getParam()))); + } + @PostMapping("/add") + public JsonResponse add(@RequestBody @Validated FundingDto.Add dto){ + fundingService.add(dto); + return JsonResponse.ok(); + } + @PostMapping("/del") + public JsonResponse del(@RequestBody @Validated CommonDto.DelDto dto){ + fundingService.del(dto); + return JsonResponse.ok(); + } } diff --git a/research-admin/src/main/java/com/research/web/controller/client/meeting/MeetingRecordController.java b/research-admin/src/main/java/com/research/web/controller/client/meeting/MeetingRecordController.java new file mode 100644 index 00000000..5bbbd70e --- /dev/null +++ b/research-admin/src/main/java/com/research/web/controller/client/meeting/MeetingRecordController.java @@ -0,0 +1,58 @@ +package com.research.web.controller.client.meeting; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.research.common.core.domain.BaseDto; +import com.research.common.core.domain.JsonResponse; +import com.research.system.domain.dto.CommonDto; +import com.research.system.domain.dto.MeetingDto; +import com.research.system.domain.vo.MeetingVo; +import com.research.system.service.MeetingService; +import io.swagger.annotations.Api; +import liquibase.pro.packaged.J; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @Author zzc + * @Package com.research.web.controller.client.meeting + * @Date 2025/8/13 9:38 + * @description: + */ +@Slf4j +@Api(tags = "会议记录") +@RestController +@RequestMapping("/meeting") +public class MeetingRecordController { + + @Resource + private MeetingService meetingService; + + @PostMapping("/query") + public JsonResponse> queryList(@RequestBody @Validated BaseDto query){ + if (query.getPageNum() > 0) { + PageHelper.startPage(query.getPageNum(), query.getPageSize()); + } + return JsonResponse.ok(new PageInfo<>(meetingService.queryList(query.getParam()))); + + } + + @PostMapping("/add") + public JsonResponse add(@RequestBody @Validated MeetingDto.Add dto){ + meetingService.add(dto); + return JsonResponse.ok(); + } + + @PostMapping("/del") + public JsonResponse del(@RequestBody @Validated CommonDto.DelDto dto){ + meetingService.del(dto); + return JsonResponse.ok(); + } +} diff --git a/research-admin/src/main/java/com/research/web/controller/client/shs/ResDeviceController.java b/research-admin/src/main/java/com/research/web/controller/client/shs/ResDeviceController.java new file mode 100644 index 00000000..5c41be02 --- /dev/null +++ b/research-admin/src/main/java/com/research/web/controller/client/shs/ResDeviceController.java @@ -0,0 +1,61 @@ +package com.research.web.controller.client.shs; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.research.common.core.domain.BaseDto; +import com.research.common.core.domain.JsonResponse; +import com.research.system.domain.dto.CommonDto; +import com.research.system.domain.dto.ShsResDeviceDto; +import com.research.system.domain.vo.ShsResDeviceVo; +import com.research.system.service.ShsResDeviceService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @Author zzc + * @Package com.research.web.controller.client.shs + * @Date 2025/8/13 17:17 + * @description: + */ +@RestController +@RequestMapping("/instrument") +@Api(tags = "仪器相关") +@Slf4j +public class ResDeviceController { + + @Resource + private ShsResDeviceService shsResDeviceService; + + @ApiOperation(value = "查询仪器") + @RequestMapping(value = "/list", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryList(@ApiParam @Validated @RequestBody BaseDto query) { + if (query.getPageNum() > 0) { + PageHelper.startPage(query.getPageNum(), query.getPageSize()); + } + return JsonResponse.ok(new PageInfo<>(shsResDeviceService.queryList(query.getParam()))); + } + + @ApiOperation(value = "新增") + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse add(@ApiParam @Validated @RequestBody ShsResDeviceDto.Add dto) { + shsResDeviceService.add(dto); + return JsonResponse.ok(); + } + + @ApiOperation(value = "删除") + @RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse del(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { + shsResDeviceService.del(dto); + return JsonResponse.ok(); + } + +} diff --git a/research-admin/src/main/java/com/research/web/controller/client/shs/ResPlatformController.java b/research-admin/src/main/java/com/research/web/controller/client/shs/ResPlatformController.java new file mode 100644 index 00000000..d8a160ef --- /dev/null +++ b/research-admin/src/main/java/com/research/web/controller/client/shs/ResPlatformController.java @@ -0,0 +1,62 @@ +package com.research.web.controller.client.shs; + +import com.research.common.core.controller.BaseController; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.research.common.core.domain.BaseDto; +import com.research.common.core.domain.JsonResponse; +import com.research.system.domain.dto.CommonDto; +import com.research.system.domain.dto.ResPlatformDto; +import com.research.system.domain.vo.ResPlatformVo; +import com.research.system.service.ResPlatformService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @Author zzc + * @Package com.ccsens.srsp.admin.controller.product + * @Date 2025/8/5 16:02 + * @description: + */ +@RestController +@RequestMapping("/resPlatform") +@Api(tags = "平台相关") +@Slf4j +public class ResPlatformController { + + @Resource + private ResPlatformService resPlatformService; + + @ApiOperation(value = "查询平台") + @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> list(@ApiParam @Validated @RequestBody BaseDto query){ + if (query.getPageNum()>0) { + PageHelper.startPage(query.getPageNum(), query.getPageSize()); + } + return JsonResponse.ok(new PageInfo<>(resPlatformService.list(query.getParam()))); + } + + @ApiOperation(value = "新增平台") + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse add(@ApiParam @Validated @RequestBody ResPlatformDto.Add dto){ + resPlatformService.add(dto); + return JsonResponse.ok(); + } + + @ApiOperation(value = "删除平台") + @RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse del(@ApiParam @Validated @RequestBody CommonDto.DelDto dto){ + resPlatformService.del(dto.getIdList()); + return JsonResponse.ok(); + } + +} diff --git a/research-admin/src/main/java/com/research/web/controller/client/shs/ShsLibInfoController.java b/research-admin/src/main/java/com/research/web/controller/client/shs/ShsLibInfoController.java new file mode 100644 index 00000000..46e5bbb8 --- /dev/null +++ b/research-admin/src/main/java/com/research/web/controller/client/shs/ShsLibInfoController.java @@ -0,0 +1,60 @@ +package com.research.web.controller.client.shs; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.research.common.core.domain.BaseDto; +import com.research.common.core.domain.JsonResponse; +import com.research.system.domain.dto.CommonDto; +import com.research.system.domain.dto.ShsLibInfoDto; +import com.research.system.domain.vo.ShsLibInfoVo; +import com.research.system.service.ShsLibInfoService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import liquibase.pro.packaged.J; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @Author zzc + * @Package com.research.web.controller.client.shs + * @Date 2025/8/13 16:06 + * @description: + */ +@RestController +@RequestMapping("/laboratory") +@Api(tags = "实验室相关") +@Slf4j +public class ShsLibInfoController { + + @Resource + private ShsLibInfoService shsLibInfoService; + + @ApiOperation(value = "查询实验室") + @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryList(BaseDto query){ + if (query.getPageNum() > 0) { + PageHelper.startPage(query.getPageNum(), query.getPageSize()); + } + return JsonResponse.ok(new PageInfo<>(shsLibInfoService.queryList(query.getParam()))); + } + + @ApiOperation(value = "新增") + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse add(ShsLibInfoDto.Add dto){ + shsLibInfoService.add(dto); + return JsonResponse.ok(); + } + + @ApiOperation(value = "删除") + @RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse del(CommonDto.DelDto dto){ + shsLibInfoService.del(dto); + return JsonResponse.ok(); + } + +} diff --git a/research-admin/src/main/resources/application-stage.yml b/research-admin/src/main/resources/application-stage.yml new file mode 100644 index 00000000..807427a0 --- /dev/null +++ b/research-admin/src/main/resources/application-stage.yml @@ -0,0 +1,61 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 + master: + url: jdbc:mysql://sd.tall.wiki:3306/open_research?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true + username: root + password: po3OynBO[M3579p6L7)o + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置连接超时时间 + connectTimeout: 30000 + # 配置网络超时时间 + socketTimeout: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: research + login-password: 123456 + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true diff --git a/research-admin/src/main/resources/application.yml b/research-admin/src/main/resources/application.yml index 2a59e32c..8057376c 100644 --- a/research-admin/src/main/resources/application.yml +++ b/research-admin/src/main/resources/application.yml @@ -7,7 +7,7 @@ research: # 版权年份 copyrightYear: 2025 # 文件路径 示例( Windows配置D:/research/uploadPath,Linux配置 /home/research/uploadPath) - profile: D:/research/uploadPath + profile: /home/research/profile # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数字计算 char 字符验证 @@ -16,7 +16,7 @@ research: # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 - port: 8080 + port: 38001 servlet: # 应用的访问路径 context-path: / diff --git a/research-admin/src/main/resources/logback.xml b/research-admin/src/main/resources/logback.xml index b421be72..9a78bf70 100644 --- a/research-admin/src/main/resources/logback.xml +++ b/research-admin/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - + diff --git a/research-generator/src/main/resources/mbg.xml b/research-generator/src/main/resources/mbg.xml index 98374736..87df6175 100644 --- a/research-generator/src/main/resources/mbg.xml +++ b/research-generator/src/main/resources/mbg.xml @@ -78,7 +78,8 @@
- +
+
+ + diff --git a/research-system/src/main/resources/mapper/dao/ResPlatformDao.xml b/research-system/src/main/resources/mapper/dao/ResPlatformDao.xml new file mode 100644 index 00000000..e043dc82 --- /dev/null +++ b/research-system/src/main/resources/mapper/dao/ResPlatformDao.xml @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/research-system/src/main/resources/mapper/dao/ShsLibInfoDao.xml b/research-system/src/main/resources/mapper/dao/ShsLibInfoDao.xml new file mode 100644 index 00000000..786feafd --- /dev/null +++ b/research-system/src/main/resources/mapper/dao/ShsLibInfoDao.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/research-system/src/main/resources/mapper/dao/ShsResDeviceDao.xml b/research-system/src/main/resources/mapper/dao/ShsResDeviceDao.xml new file mode 100644 index 00000000..85592db2 --- /dev/null +++ b/research-system/src/main/resources/mapper/dao/ShsResDeviceDao.xml @@ -0,0 +1,34 @@ + + + + + + diff --git a/research-system/src/main/resources/mapper/system/ResPlatformMapper.xml b/research-system/src/main/resources/mapper/system/ResPlatformMapper.xml new file mode 100644 index 00000000..6a28f68c --- /dev/null +++ b/research-system/src/main/resources/mapper/system/ResPlatformMapper.xml @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, administrators, phone, email, remark, create_by, create_time, update_time, + del_status, proj_id, proj_org_id + + + + + delete from res_platform + where id = #{id,jdbcType=BIGINT} + + + insert into res_platform (id, name, administrators, + phone, email, remark, + create_by, create_time, update_time, + del_status, proj_id, proj_org_id + ) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{administrators,jdbcType=VARCHAR}, + #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, + #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{delStatus,jdbcType=TINYINT}, #{projId,jdbcType=BIGINT}, #{projOrgId,jdbcType=BIGINT} + ) + + + insert into res_platform + + + id, + + + name, + + + administrators, + + + phone, + + + email, + + + remark, + + + create_by, + + + create_time, + + + update_time, + + + del_status, + + + proj_id, + + + proj_org_id, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{administrators,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, + + + #{email,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delStatus,jdbcType=TINYINT}, + + + #{projId,jdbcType=BIGINT}, + + + #{projOrgId,jdbcType=BIGINT}, + + + + + + update res_platform + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + administrators = #{record.administrators,jdbcType=VARCHAR}, + + + phone = #{record.phone,jdbcType=VARCHAR}, + + + email = #{record.email,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + create_by = #{record.createBy,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + del_status = #{record.delStatus,jdbcType=TINYINT}, + + + proj_id = #{record.projId,jdbcType=BIGINT}, + + + proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, + + + + + + + + update res_platform + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + administrators = #{record.administrators,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + email = #{record.email,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + create_by = #{record.createBy,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + del_status = #{record.delStatus,jdbcType=TINYINT}, + proj_id = #{record.projId,jdbcType=BIGINT}, + proj_org_id = #{record.projOrgId,jdbcType=BIGINT} + + + + + + update res_platform + + + name = #{name,jdbcType=VARCHAR}, + + + administrators = #{administrators,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + email = #{email,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + del_status = #{delStatus,jdbcType=TINYINT}, + + + proj_id = #{projId,jdbcType=BIGINT}, + + + proj_org_id = #{projOrgId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update res_platform + set name = #{name,jdbcType=VARCHAR}, + administrators = #{administrators,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + email = #{email,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + del_status = #{delStatus,jdbcType=TINYINT}, + proj_id = #{projId,jdbcType=BIGINT}, + proj_org_id = #{projOrgId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/research-system/src/main/resources/mapper/system/ShsResDeviceMapper.xml b/research-system/src/main/resources/mapper/system/ShsResDeviceMapper.xml new file mode 100644 index 00000000..7b635e4d --- /dev/null +++ b/research-system/src/main/resources/mapper/system/ShsResDeviceMapper.xml @@ -0,0 +1,548 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, proj_id, proj_org_id, name, device_sn, purchase_date, networking_date, manufacturer, + model, purchase_price, english_name, introduction, persion, platform_id, library_id, + address, sort, create_by, created_at, updated_at, del_status + + + description + + + + + + delete from shs_res_device + where id = #{id,jdbcType=BIGINT} + + + insert into shs_res_device (id, proj_id, proj_org_id, + name, device_sn, purchase_date, + networking_date, manufacturer, model, + purchase_price, english_name, introduction, + persion, platform_id, library_id, + address, sort, create_by, + created_at, updated_at, del_status, + description) + values (#{id,jdbcType=BIGINT}, #{projId,jdbcType=BIGINT}, #{projOrgId,jdbcType=BIGINT}, + #{name,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, #{purchaseDate,jdbcType=TIMESTAMP}, + #{networkingDate,jdbcType=TIMESTAMP}, #{manufacturer,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, + #{purchasePrice,jdbcType=VARCHAR}, #{englishName,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, + #{persion,jdbcType=VARCHAR}, #{platformId,jdbcType=BIGINT}, #{libraryId,jdbcType=BIGINT}, + #{address,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{delStatus,jdbcType=TINYINT}, + #{description,jdbcType=LONGVARCHAR}) + + + insert into shs_res_device + + + id, + + + proj_id, + + + proj_org_id, + + + name, + + + device_sn, + + + purchase_date, + + + networking_date, + + + manufacturer, + + + model, + + + purchase_price, + + + english_name, + + + introduction, + + + persion, + + + platform_id, + + + library_id, + + + address, + + + sort, + + + create_by, + + + created_at, + + + updated_at, + + + del_status, + + + description, + + + + + #{id,jdbcType=BIGINT}, + + + #{projId,jdbcType=BIGINT}, + + + #{projOrgId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{deviceSn,jdbcType=VARCHAR}, + + + #{purchaseDate,jdbcType=TIMESTAMP}, + + + #{networkingDate,jdbcType=TIMESTAMP}, + + + #{manufacturer,jdbcType=VARCHAR}, + + + #{model,jdbcType=VARCHAR}, + + + #{purchasePrice,jdbcType=VARCHAR}, + + + #{englishName,jdbcType=VARCHAR}, + + + #{introduction,jdbcType=VARCHAR}, + + + #{persion,jdbcType=VARCHAR}, + + + #{platformId,jdbcType=BIGINT}, + + + #{libraryId,jdbcType=BIGINT}, + + + #{address,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{delStatus,jdbcType=TINYINT}, + + + #{description,jdbcType=LONGVARCHAR}, + + + + + + update shs_res_device + + + id = #{record.id,jdbcType=BIGINT}, + + + proj_id = #{record.projId,jdbcType=BIGINT}, + + + proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + device_sn = #{record.deviceSn,jdbcType=VARCHAR}, + + + purchase_date = #{record.purchaseDate,jdbcType=TIMESTAMP}, + + + networking_date = #{record.networkingDate,jdbcType=TIMESTAMP}, + + + manufacturer = #{record.manufacturer,jdbcType=VARCHAR}, + + + model = #{record.model,jdbcType=VARCHAR}, + + + purchase_price = #{record.purchasePrice,jdbcType=VARCHAR}, + + + english_name = #{record.englishName,jdbcType=VARCHAR}, + + + introduction = #{record.introduction,jdbcType=VARCHAR}, + + + persion = #{record.persion,jdbcType=VARCHAR}, + + + platform_id = #{record.platformId,jdbcType=BIGINT}, + + + library_id = #{record.libraryId,jdbcType=BIGINT}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + create_by = #{record.createBy,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + del_status = #{record.delStatus,jdbcType=TINYINT}, + + + description = #{record.description,jdbcType=LONGVARCHAR}, + + + + + + + + update shs_res_device + set id = #{record.id,jdbcType=BIGINT}, + proj_id = #{record.projId,jdbcType=BIGINT}, + proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + device_sn = #{record.deviceSn,jdbcType=VARCHAR}, + purchase_date = #{record.purchaseDate,jdbcType=TIMESTAMP}, + networking_date = #{record.networkingDate,jdbcType=TIMESTAMP}, + manufacturer = #{record.manufacturer,jdbcType=VARCHAR}, + model = #{record.model,jdbcType=VARCHAR}, + purchase_price = #{record.purchasePrice,jdbcType=VARCHAR}, + english_name = #{record.englishName,jdbcType=VARCHAR}, + introduction = #{record.introduction,jdbcType=VARCHAR}, + persion = #{record.persion,jdbcType=VARCHAR}, + platform_id = #{record.platformId,jdbcType=BIGINT}, + library_id = #{record.libraryId,jdbcType=BIGINT}, + address = #{record.address,jdbcType=VARCHAR}, + sort = #{record.sort,jdbcType=INTEGER}, + create_by = #{record.createBy,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + del_status = #{record.delStatus,jdbcType=TINYINT}, + description = #{record.description,jdbcType=LONGVARCHAR} + + + + + + update shs_res_device + set id = #{record.id,jdbcType=BIGINT}, + proj_id = #{record.projId,jdbcType=BIGINT}, + proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + device_sn = #{record.deviceSn,jdbcType=VARCHAR}, + purchase_date = #{record.purchaseDate,jdbcType=TIMESTAMP}, + networking_date = #{record.networkingDate,jdbcType=TIMESTAMP}, + manufacturer = #{record.manufacturer,jdbcType=VARCHAR}, + model = #{record.model,jdbcType=VARCHAR}, + purchase_price = #{record.purchasePrice,jdbcType=VARCHAR}, + english_name = #{record.englishName,jdbcType=VARCHAR}, + introduction = #{record.introduction,jdbcType=VARCHAR}, + persion = #{record.persion,jdbcType=VARCHAR}, + platform_id = #{record.platformId,jdbcType=BIGINT}, + library_id = #{record.libraryId,jdbcType=BIGINT}, + address = #{record.address,jdbcType=VARCHAR}, + sort = #{record.sort,jdbcType=INTEGER}, + create_by = #{record.createBy,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + del_status = #{record.delStatus,jdbcType=TINYINT} + + + + + + update shs_res_device + + + proj_id = #{projId,jdbcType=BIGINT}, + + + proj_org_id = #{projOrgId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + device_sn = #{deviceSn,jdbcType=VARCHAR}, + + + purchase_date = #{purchaseDate,jdbcType=TIMESTAMP}, + + + networking_date = #{networkingDate,jdbcType=TIMESTAMP}, + + + manufacturer = #{manufacturer,jdbcType=VARCHAR}, + + + model = #{model,jdbcType=VARCHAR}, + + + purchase_price = #{purchasePrice,jdbcType=VARCHAR}, + + + english_name = #{englishName,jdbcType=VARCHAR}, + + + introduction = #{introduction,jdbcType=VARCHAR}, + + + persion = #{persion,jdbcType=VARCHAR}, + + + platform_id = #{platformId,jdbcType=BIGINT}, + + + library_id = #{libraryId,jdbcType=BIGINT}, + + + address = #{address,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + del_status = #{delStatus,jdbcType=TINYINT}, + + + description = #{description,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update shs_res_device + set proj_id = #{projId,jdbcType=BIGINT}, + proj_org_id = #{projOrgId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + device_sn = #{deviceSn,jdbcType=VARCHAR}, + purchase_date = #{purchaseDate,jdbcType=TIMESTAMP}, + networking_date = #{networkingDate,jdbcType=TIMESTAMP}, + manufacturer = #{manufacturer,jdbcType=VARCHAR}, + model = #{model,jdbcType=VARCHAR}, + purchase_price = #{purchasePrice,jdbcType=VARCHAR}, + english_name = #{englishName,jdbcType=VARCHAR}, + introduction = #{introduction,jdbcType=VARCHAR}, + persion = #{persion,jdbcType=VARCHAR}, + platform_id = #{platformId,jdbcType=BIGINT}, + library_id = #{libraryId,jdbcType=BIGINT}, + address = #{address,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + create_by = #{createBy,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + del_status = #{delStatus,jdbcType=TINYINT}, + description = #{description,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update shs_res_device + set proj_id = #{projId,jdbcType=BIGINT}, + proj_org_id = #{projOrgId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + device_sn = #{deviceSn,jdbcType=VARCHAR}, + purchase_date = #{purchaseDate,jdbcType=TIMESTAMP}, + networking_date = #{networkingDate,jdbcType=TIMESTAMP}, + manufacturer = #{manufacturer,jdbcType=VARCHAR}, + model = #{model,jdbcType=VARCHAR}, + purchase_price = #{purchasePrice,jdbcType=VARCHAR}, + english_name = #{englishName,jdbcType=VARCHAR}, + introduction = #{introduction,jdbcType=VARCHAR}, + persion = #{persion,jdbcType=VARCHAR}, + platform_id = #{platformId,jdbcType=BIGINT}, + library_id = #{libraryId,jdbcType=BIGINT}, + address = #{address,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + create_by = #{createBy,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + del_status = #{delStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file