pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SePaymentMethodMapper.java
@@ -2,17 +2,16 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dy.pipIrrGlobal.pojoSe.SePaymentMethod; import org.apache.ibatis.annotations.Mapper; import org.mapstruct.Mapper; import java.util.List; /** * @author ZhuBaoMin * @date 2023/12/5 16:03 * @LastEditTime 2023/12/5 16:03 * @author :WuZeYu * @Date :2024/6/27 14:47 * @LastEditTime :2024/6/27 14:47 * @Description */ @Mapper public interface SePaymentMethodMapper extends BaseMapper<SePaymentMethod> { int deleteByPrimaryKey(Long id); @@ -29,6 +28,7 @@ /** * 获取全部未删除付款方式 * * @return 未删除付款方式 */ List<SePaymentMethod> getPaymentMethods(); pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSe/SePaymentMethod.java
@@ -1,12 +1,11 @@ package com.dy.pipIrrGlobal.pojoSe; /** * @author ZhuBaoMin * @date 2023/12/5 16:03 * @LastEditTime 2023/12/5 16:03 * @author :WuZeYu * @Date :2024/6/27 14:26 * @LastEditTime :2024/6/27 14:26 * @Description */ import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.writer.ObjectWriterImplToString; import com.baomidou.mybatisplus.annotation.IdType; @@ -17,11 +16,9 @@ import jakarta.validation.constraints.NotEmpty; import lombok.*; import org.hibernate.validator.constraints.Length; /** * 付款方式表 */ @TableName(value="se_payment_method", autoResultMap = true) @Data @Builder @@ -33,31 +30,31 @@ public static final long serialVersionUID = 202401151518006L; /** * 主键 */ * 主键 */ @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JSONField(serializeUsing= ObjectWriterImplToString.class) @TableId(type = IdType.INPUT) @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Long id; public Long id; /** * 付款方式 */ * 付款方式 */ @Schema(description = "付款方式名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "付款方式名称不能为空") //不能为空也不能为null @Length(message = "付款方式名称名称不大于{max}字,不小于{min}字", min = 1, max = 10) private String name; public String name; /** * 备注信息 */ * 备注信息 */ @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @Length(message = "备注长度小于{max}字", min = 1, max = 200) private String remarks; public String remarks; /** * 逻辑删除标识;0-未删除,1-删除 */ * 逻辑删除标识;0-未删除,1-删除 */ @Schema(description = "付款方式删除标志,表单不用填写", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private Byte deleted; public Byte deleted; } pipIrr-platform/pipIrr-global/src/main/resources/init-config.xml
@@ -15,7 +15,7 @@ <item1 name="现金"/> <item2 name="微信支付"/> <item3 name="支付宝支付"/> <item3 name="银行转账"/> <item4 name="银行转账"/> </payments> <settings> <item1 item_name="lng" item_value=""/> pipIrr-platform/pipIrr-global/src/main/resources/mapper/SePaymentMethodMapper.xml
@@ -20,12 +20,6 @@ from se_payment_method where id = #{id,jdbcType=BIGINT} </select> <!--获取全部未删除付款方式--> <select id="getPaymentMethods" resultType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod"> SELECT * FROM se_payment_method WHERE deleted = 0 </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> <!--@mbg.generated--> delete from se_payment_method @@ -88,4 +82,10 @@ deleted = #{deleted,jdbcType=TINYINT} where id = #{id,jdbcType=BIGINT} </update> <!--获取全部未删除付款方式--> <select id="getPaymentMethods" resultType="com.dy.pipIrrGlobal.pojoSe.SePaymentMethod"> SELECT * FROM se_payment_method WHERE deleted = 0 </select> </mapper> pipIrr-platform/pipIrr-parent.iml
New file @@ -0,0 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_16"> <output url="file://$MODULE_DIR$/target/classes" /> <output-test url="file://$MODULE_DIR$/target/test-classes" /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/target" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> </component> </module> pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/PipIrrBaseApplication.java
@@ -18,7 +18,7 @@ }) } ) @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoBa"}) @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoSe"}) public class PipIrrBaseApplication { public static void main(String[] args) { pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/util/InitListener.java
@@ -224,7 +224,7 @@ SePaymentMethod po = new SePaymentMethod() ; po.setName(name); po.setDeleted(Deleted.NO.code); this.paymentMethodDao.insertSelective(po) ; this.paymentMethodDao.insert(po) ; } }