From ec50e978f09d5ecf6fc2d3a8649df4fe9649d9f1 Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期五, 05 九月 2025 10:47:37 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/pim_yys' --- src/main/java/com/ruoyi/officesupplies/pojo/OfficeSupplies.java | 160 ++++++++++++++++ src/main/java/com/ruoyi/officesupplies/service/impl/OfficeSuppliesServiceImpl.java | 30 +++ src/main/java/com/ruoyi/officesupplies/mapper/OfficeSuppliesMapper.java | 23 ++ src/main/java/com/ruoyi/officesupplies/service/OfficeSuppliesService.java | 22 ++ src/main/resources/application-cjny.yml | 219 +++++++++++++++++++++ src/main/resources/mapper/officesupplies/OfficeSuppliesMapper.xml | 19 + src/main/java/com/ruoyi/officesupplies/controller/OfficeSuppliesController.java | 87 ++++++++ 7 files changed, 560 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ruoyi/officesupplies/controller/OfficeSuppliesController.java b/src/main/java/com/ruoyi/officesupplies/controller/OfficeSuppliesController.java new file mode 100644 index 0000000..91243f4 --- /dev/null +++ b/src/main/java/com/ruoyi/officesupplies/controller/OfficeSuppliesController.java @@ -0,0 +1,87 @@ +package com.ruoyi.officesupplies.controller; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.equipmentenergyconsumption.pojo.EquipmentEnergyConsumption; +import com.ruoyi.framework.aspectj.lang.annotation.Log; +import com.ruoyi.framework.aspectj.lang.enums.BusinessType; +import com.ruoyi.framework.web.controller.BaseController; +import com.ruoyi.framework.web.domain.AjaxResult; +import com.ruoyi.officesupplies.pojo.OfficeSupplies; +import com.ruoyi.officesupplies.service.OfficeSuppliesService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.Date; +import java.util.List; + +/** + * @author :yys + * @date : 2025/9/4 14:16 + */ +@RestController +@Api(tags = "鍔炲叕鐗╄祫") +@RequestMapping("/officeSupplies") +public class OfficeSuppliesController extends BaseController { + + @Autowired + private OfficeSuppliesService officeSuppliesService; + + @GetMapping("/listPage") + @ApiOperation("鍔炲叕鐗╄祫-鍒嗛〉鏌ヨ") + public AjaxResult listPage(Page page, OfficeSupplies officeSupplies) { + return officeSuppliesService.listPage(page, officeSupplies); + } + + @PostMapping("/add") + @ApiOperation("鍔炲叕鐗╄祫-娣诲姞") + @Transactional(rollbackFor = Exception.class) + public AjaxResult add(@RequestBody OfficeSupplies officeSupplies) { + // 鎸夌収褰撳墠鏃堕棿yyyyMMdd + 褰撳ぉ鏂板鏁伴噺 + 1鐢熸垚缂栧彿 + // 鑾峰彇褰撳ぉ鏂板鏁伴噺 + long count = officeSuppliesService.count(new LambdaQueryWrapper<OfficeSupplies>() + .gt(OfficeSupplies::getCreateTime, LocalDate.now()) + .lt(OfficeSupplies::getCreateTime, LocalDate.now().plusDays(1))); + String code = "WS" + LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd")) + String.format("%03d", count + 1); + officeSupplies.setCode(code); + officeSupplies.setStatus(1); + officeSupplies.setApplyTime(new Date()); + return officeSuppliesService.save(officeSupplies) ? success() : error(); + } + + @PostMapping("/update") + @ApiOperation("鍔炲叕鐗╄祫-淇敼") + @Transactional(rollbackFor = Exception.class) + public AjaxResult update(@RequestBody OfficeSupplies officeSupplies) { + return officeSuppliesService.updateById(officeSupplies) ? success() : error(); + } + + @DeleteMapping("/delete") + @ApiOperation("鍔炲叕鐗╄祫-鍒犻櫎") + @Transactional(rollbackFor = Exception.class) + public AjaxResult delete(@RequestBody List<Long> ids) { + if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D"); + return officeSuppliesService.removeBatchByIds(ids) ? success() : error(); + } + + /** + * 瀵煎嚭鍔炲叕鐗╄祫 + */ + @Log(title = "瀵煎嚭鍔炲叕鐗╄祫", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ApiOperation("瀵煎嚭鍔炲叕鐗╄祫") + public void export(HttpServletResponse response) { + ExcelUtil<OfficeSupplies> util = new ExcelUtil<OfficeSupplies>(OfficeSupplies.class); + List<OfficeSupplies> list = officeSuppliesService.list(); + util.exportExcel(response, list , "鍔炲叕鐗╄祫"); + } + +} diff --git a/src/main/java/com/ruoyi/officesupplies/mapper/OfficeSuppliesMapper.java b/src/main/java/com/ruoyi/officesupplies/mapper/OfficeSuppliesMapper.java new file mode 100644 index 0000000..7d73636 --- /dev/null +++ b/src/main/java/com/ruoyi/officesupplies/mapper/OfficeSuppliesMapper.java @@ -0,0 +1,23 @@ +package com.ruoyi.officesupplies.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.officesupplies.pojo.OfficeSupplies; +import org.apache.ibatis.annotations.Param; + +/** + * @author :yys + * @date : 2025/9/4 14:13 + */ +public interface OfficeSuppliesMapper extends BaseMapper<OfficeSupplies> { + + /** + * 鍒楄〃鍒嗛〉鏌ヨ + * + * @param page + * @param officeSupplies + * @return + */ + IPage<OfficeSupplies> listPage(Page page,@Param("req") OfficeSupplies officeSupplies); +} diff --git a/src/main/java/com/ruoyi/officesupplies/pojo/OfficeSupplies.java b/src/main/java/com/ruoyi/officesupplies/pojo/OfficeSupplies.java new file mode 100644 index 0000000..b693c10 --- /dev/null +++ b/src/main/java/com/ruoyi/officesupplies/pojo/OfficeSupplies.java @@ -0,0 +1,160 @@ +package com.ruoyi.officesupplies.pojo; + +import com.baomidou.mybatisplus.annotation.*; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.framework.aspectj.lang.annotation.Excel; +import com.ruoyi.sales.pojo.CommonFile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.time.LocalDateTime; +import java.util.Date; +import java.util.List; + +/** + * @author :yys + * @date : 2025/9/4 14:02 + */ +@Data +@ApiModel +@TableName("office_supplies") +public class OfficeSupplies { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty("缂栧彿") + @Excel(name = "缂栧彿") + private String code; + + @ApiModelProperty("鐗╁搧鍚嶇О") + private String itemName; + + @ApiModelProperty("鐢宠浜�") + @Excel(name = "鐢宠浜�") + private String applicant; + + /** + * 閮ㄩ棬 + */ + @ApiModelProperty("閮ㄩ棬") + @Excel(name = "閮ㄩ棬") + private String dept; + + /** + * 鐗╄祫绫诲瀷锛�1-鍏朵粬 2-娓呮磥鐢ㄥ搧 3-鐢靛瓙鐢ㄥ搧 4-鐢靛瓙璁惧锛� + */ + @ApiModelProperty("鐗╄祫绫诲瀷锛�1-鍏朵粬 2-娓呮磥鐢ㄥ搧 3-鐢靛瓙鐢ㄥ搧 4-鐢靛瓙璁惧锛�") + @Excel(name = "鐗╄祫绫诲瀷", readConverterExp = "1=鍏朵粬,2=娓呮磥鐢ㄥ搧,3=鐢靛瓙鐢ㄥ搧,4=鐢靛瓙璁惧") + private Integer materialType; + + /** + * 鐢宠鏁伴噺 + */ + @ApiModelProperty("鐢宠鏁伴噺") + @Excel(name = "鐢宠鏁伴噺") + private Integer applyNum; + + /** + * 瀹℃壒鎰忚 + */ + @ApiModelProperty("瀹℃壒鎰忚") +// @Excel(name = "瀹℃壒鎰忚") + private String approvalOpinions; + + /** + * 鐢宠鍘熷洜 + */ + @ApiModelProperty("鐢宠鍘熷洜") + @Excel(name = "鐢宠鍘熷洜") + private String reason; + + + /** + * 绱ф�ョ▼搴︼紙1-鏅�� 2-绱ф�� 3-闈炲父绱ф�ワ級 + */ + @ApiModelProperty("绱ф�ョ▼搴︼紙1-鏅�� 2-绱ф�� 3-闈炲父绱ф�ワ級") +// @Excel(name = "绱ф�ョ▼搴�", readConverterExp = "1=鏅��,2=绱ф��,3=闈炲父绱ф��") + private Integer urgency; + + /** + * 鐘舵�侊紙1-寰呭鎵� 2-宸叉嫆缁� 3-宸查�氳繃 4-宸插彂鏀撅級 + */ + @ApiModelProperty("鐘舵�侊紙1-寰呭鎵� 2-宸叉嫆缁� 3-宸查�氳繃 4-宸插彂鏀撅級") + @Excel(name = "鐘舵��", readConverterExp = "1=寰呭鎵�,2=宸叉嫆缁�,3=宸查�氳繃,4=宸插彂鏀�") + private Integer status; + + /** + * 鐢宠鏃堕棿 + */ + @ApiModelProperty("鐢宠鏃堕棿") + @Excel(name = "鐢宠鏃堕棿" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date applyTime; + + + /** + * 瀹℃壒浜� + */ + @ApiModelProperty("瀹℃壒浜�") + @Excel(name = "瀹℃壒浜�") + private String approval; + + /** + * 瀹℃壒鏃堕棿 + */ + @ApiModelProperty("瀹℃壒鏃堕棿") + @Excel(name = "瀹℃壒鏃堕棿", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date approvalTime; + + /** + * 鍙戞斁鏃堕棿 + */ + @ApiModelProperty("鍙戞斁鏃堕棿") + @Excel(name = "鍙戞斁鏃堕棿", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date issueTime; + + @ApiModelProperty("鍙戞斁浜�") +// @Excel(name = "鍙戞斁浜�") + private String issueUser; + + /** + * 鍒涘缓鑰� + */ + @TableField(fill = FieldFill.INSERT) + private Integer createUser; + + /** + * 鍒涘缓鏃堕棿 + */ + @TableField(fill = FieldFill.INSERT) + private LocalDateTime createTime; + + /** + * 淇敼鑰� + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Integer updateUser; + + /** + * 淇敼鏃堕棿 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private LocalDateTime updateTime; + + /** + * 绉熸埛ID + */ + @TableField(fill = FieldFill.INSERT) + private Long tenantId; + +} diff --git a/src/main/java/com/ruoyi/officesupplies/service/OfficeSuppliesService.java b/src/main/java/com/ruoyi/officesupplies/service/OfficeSuppliesService.java new file mode 100644 index 0000000..3a521b5 --- /dev/null +++ b/src/main/java/com/ruoyi/officesupplies/service/OfficeSuppliesService.java @@ -0,0 +1,22 @@ +package com.ruoyi.officesupplies.service; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.framework.web.domain.AjaxResult; +import com.ruoyi.officesupplies.pojo.OfficeSupplies; + +/** + * @author :yys + * @date : 2025/9/4 14:14 + */ +public interface OfficeSuppliesService extends IService<OfficeSupplies> { + + /** + * 鍒嗛〉鏌ヨ + * + * @param page + * @param officeSupplies + * @return + */ + AjaxResult listPage(Page page, OfficeSupplies officeSupplies); +} diff --git a/src/main/java/com/ruoyi/officesupplies/service/impl/OfficeSuppliesServiceImpl.java b/src/main/java/com/ruoyi/officesupplies/service/impl/OfficeSuppliesServiceImpl.java new file mode 100644 index 0000000..2ba961f --- /dev/null +++ b/src/main/java/com/ruoyi/officesupplies/service/impl/OfficeSuppliesServiceImpl.java @@ -0,0 +1,30 @@ +package com.ruoyi.officesupplies.service.impl; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.framework.web.domain.AjaxResult; +import com.ruoyi.officesupplies.mapper.OfficeSuppliesMapper; +import com.ruoyi.officesupplies.pojo.OfficeSupplies; +import com.ruoyi.officesupplies.service.OfficeSuppliesService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * @author :yys + * @date : 2025/9/4 14:15 + */ +@Service +@Slf4j +public class OfficeSuppliesServiceImpl extends ServiceImpl<OfficeSuppliesMapper, OfficeSupplies> implements OfficeSuppliesService { + + @Autowired + private OfficeSuppliesMapper officeSuppliesMapper; + + @Override + public AjaxResult listPage(Page page, OfficeSupplies officeSupplies) { + IPage<OfficeSupplies> list = officeSuppliesMapper.listPage(page, officeSupplies); + return AjaxResult.success(list); + } +} diff --git a/src/main/resources/application-cjny.yml b/src/main/resources/application-cjny.yml new file mode 100644 index 0000000..0f65c31 --- /dev/null +++ b/src/main/resources/application-cjny.yml @@ -0,0 +1,219 @@ +# 椤圭洰鐩稿叧閰嶇疆 +ruoyi: + # 鍚嶇О + name: RuoYi + # 鐗堟湰 + version: 3.8.9 + # 鐗堟潈骞翠唤 + copyrightYear: 2025 + # 鏂囦欢璺緞 绀轰緥锛� Windows閰嶇疆D:/ruoyi/uploadPath锛孡inux閰嶇疆 /home/ruoyi/uploadPath锛� + profile: /javaWork/product-inventory-management/file + + # 鑾峰彇ip鍦板潃寮�鍏� + addressEnabled: false + # 楠岃瘉鐮佺被鍨� math 鏁板瓧璁$畻 char 瀛楃楠岃瘉 + captchaType: math + +# 寮�鍙戠幆澧冮厤缃� +server: + # 鏈嶅姟鍣ㄧ殑HTTP绔彛锛岄粯璁や负8080 + port: 9036 + servlet: + # 搴旂敤鐨勮闂矾寰� + context-path: / + tomcat: + # tomcat鐨刄RI缂栫爜 + uri-encoding: UTF-8 + # 杩炴帴鏁版弧鍚庣殑鎺掗槦鏁帮紝榛樿涓�100 + accept-count: 1000 + threads: + # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200 + max: 800 + # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�10 + min-spare: 100 + +# 鏃ュ織閰嶇疆 +logging: + level: + com.ruoyi: warn + org.springframework: warn + +minio: + endpoint: http://114.132.189.42/ + port: 7019 + secure: false + accessKey: admin + secretKey: 12345678 + preview-expiry: 24 # 棰勮鍦板潃榛樿24灏忔椂 + default-bucket: uploadPath +# 鐢ㄦ埛閰嶇疆 +user: + password: + # 瀵嗙爜鏈�澶ч敊璇鏁� + maxRetryCount: 5 + # 瀵嗙爜閿佸畾鏃堕棿锛堥粯璁�10鍒嗛挓锛� + lockTime: 10 + +# Spring閰嶇疆 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 涓诲簱鏁版嵁婧� + master: + url: jdbc:mysql://192.168.1.185:3306/product-inventory-management-cjny?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: xd@123456.. + # 浠庡簱鏁版嵁婧� + 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: ruoyi + login-password: 123456 + filter: + stat: + enabled: true + # 鎱QL璁板綍 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + # 璧勬簮淇℃伅 + messages: + # 鍥介檯鍖栬祫婧愭枃浠惰矾寰� + basename: i18n/messages + # 鏂囦欢涓婁紶 + servlet: + multipart: + # 鍗曚釜鏂囦欢澶у皬 + max-file-size: 1GB + # 璁剧疆鎬讳笂浼犵殑鏂囦欢澶у皬 + max-request-size: 2GB + # 鏈嶅姟妯″潡 + devtools: + restart: + # 鐑儴缃插紑鍏� + enabled: false + # redis 閰嶇疆 + redis: + # 鍦板潃 +# host: 127.0.0.1 + host: 172.17.0.1 + # 绔彛锛岄粯璁や负6379 + port: 6379 + # 鏁版嵁搴撶储寮� + database: 4 + # 瀵嗙爜 +# password: root2022! + password: + + # 杩炴帴瓒呮椂鏃堕棿 + timeout: 10s + lettuce: + pool: + # 杩炴帴姹犱腑鐨勬渶灏忕┖闂茶繛鎺� + min-idle: 0 + # 杩炴帴姹犱腑鐨勬渶澶х┖闂茶繛鎺� + max-idle: 8 + # 杩炴帴姹犵殑鏈�澶ф暟鎹簱杩炴帴鏁� + max-active: 8 + # #杩炴帴姹犳渶澶ч樆濉炵瓑寰呮椂闂达紙浣跨敤璐熷�艰〃绀烘病鏈夐檺鍒讹級 + max-wait: -1ms + +# token閰嶇疆 +token: + # 浠ょ墝鑷畾涔夋爣璇� + header: Authorization + # 浠ょ墝瀵嗛挜 + secret: abcdefghijklmnopqrstuvwxyz + # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛� + expireTime: 450 + +# MyBatis Plus閰嶇疆 +mybatis-plus: + # 鎼滅储鎸囧畾鍖呭埆鍚� 鏍规嵁鑷繁鐨勯」鐩潵 + typeAliasesPackage: com.ruoyi.**.pojo + # 閰嶇疆mapper鐨勬壂鎻忥紝鎵惧埌鎵�鏈夌殑mapper.xml鏄犲皠鏂囦欢 + mapperLocations: classpath*:mapper/**/*Mapper.xml + # 鍔犺浇鍏ㄥ眬鐨勯厤缃枃浠� + configLocation: classpath:mybatis/mybatis-config.xml + global-config: + enable-sql-runner: true + db-config: + id-type: auto + +# PageHelper鍒嗛〉鎻掍欢 +pagehelper: + helperDialect: mysql + supportMethodsArguments: true + params: count=countSql + +# Swagger閰嶇疆 +swagger: + # 鏄惁寮�鍚痵wagger + enabled: true + # 璇锋眰鍓嶇紑 + pathMapping: /dev-api + +# 闃叉XSS鏀诲嚮 +xss: + # 杩囨护寮�鍏� + enabled: true + # 鎺掗櫎閾炬帴锛堝涓敤閫楀彿鍒嗛殧锛� + excludes: /system/notice + # 鍖归厤閾炬帴 + urlPatterns: /system/*,/monitor/*,/tool/* + +# 浠g爜鐢熸垚 +gen: + # 浣滆�� + author: ruoyi + # 榛樿鐢熸垚鍖呰矾寰� system 闇�鏀规垚鑷繁鐨勬ā鍧楀悕绉� 濡� system monitor tool + packageName: com.ruoyi.project.system + # 鑷姩鍘婚櫎琛ㄥ墠缂�锛岄粯璁ゆ槸true + autoRemovePre: false + # 琛ㄥ墠缂�锛堢敓鎴愮被鍚嶄笉浼氬寘鍚〃鍓嶇紑锛屽涓敤閫楀彿鍒嗛殧锛� + tablePrefix: sys_ + # 鏄惁鍏佽鐢熸垚鏂囦欢瑕嗙洊鍒版湰鍦帮紙鑷畾涔夎矾寰勶級锛岄粯璁や笉鍏佽 + allowOverwrite: false + +file: + temp-dir: /javaWork/product-inventory-management/file/temp/uploads + upload-dir: /javaWork/product-inventory-management/file/prod/uploads \ No newline at end of file diff --git a/src/main/resources/mapper/officesupplies/OfficeSuppliesMapper.xml b/src/main/resources/mapper/officesupplies/OfficeSuppliesMapper.xml new file mode 100644 index 0000000..7191aa9 --- /dev/null +++ b/src/main/resources/mapper/officesupplies/OfficeSuppliesMapper.xml @@ -0,0 +1,19 @@ +<?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.ruoyi.officesupplies.mapper.OfficeSuppliesMapper"> + + <select id="listPage" resultType="com.ruoyi.officesupplies.pojo.OfficeSupplies"> + select * from office_supplies + <where> + <if test="req.code != null and req.code != ''"> + and code like concat('%',#{req.code},'%') + </if> + <if test="req.applicant != null and req.applicant != ''"> + and applicant like concat('%',#{req.applicant},'%') + </if> + <if test="req.status != null and req.status != ''"> + and status = #{req.status} + </if> + </where> + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3