Compare commits

...

3 Commits

@ -0,0 +1,88 @@
package com.ruoyi.gysl.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.gysl.entity.Fmqd;
import com.ruoyi.gysl.service.FmqdService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* (FmqdController)
*
*/
@Api(tags ="负面清单管理" )
@RestController
@RequestMapping("/gysl/Fmqd")
public class FmqdController extends BaseController {
@Resource
private FmqdService fmqdService;
/**
*
*
* @param fmqd
* @return
*/
@GetMapping("/list")
@ApiOperation("分页查询负面清单数据")
public TableDataInfo list(Fmqd fmqd) {
startPage(); // 开启分页
List<Fmqd> list = fmqdService.selectFmqdList(fmqd);
return getDataTable(list);
// 封装分页结果
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation("通过主键查询负面清单数据")
public AjaxResult select(@PathVariable Integer id){
return success(fmqdService.selectFmqdId(id));
}
/**
*
*@param fmqd
* @return
*/
@PostMapping("/add")
@ApiOperation("新增数据")
public AjaxResult add(@RequestBody Fmqd fmqd) {
return success(fmqdService.save(fmqd));
}
/**
*
*
* @param fmqd
* @return
*/
@PostMapping("/edit")
@ApiOperation("修改数据")
public AjaxResult update(@RequestBody Fmqd fmqd) {
return success(fmqdService.updateById(fmqd));
}
/**
*
*
* @param id
* @return
*/
@DeleteMapping("/delete/{id}")
@ApiOperation("删除数据")
public AjaxResult delete(@PathVariable Integer id) {
return success(fmqdService.deleteMapping(id));
}
}

@ -0,0 +1,87 @@
package com.ruoyi.gysl.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.gysl.entity.Ml;
import com.ruoyi.gysl.service.MlService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@Api(tags ="目录管理" )
@RestController
@RequestMapping("/gysl/Ml")
public class MlController extends BaseController {
/**
*
*/
@Resource
private MlService mlService;
/**
*
*
* @param ml
* @return
*/
@GetMapping("/list")
@ApiOperation("分页查询目录数据")
public TableDataInfo list(Ml ml) {
startPage(); // 开启分页
List<Ml> list = mlService.selectMl(ml);
return getDataTable(list);
// 封装分页结果
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation("通过主键查询目录")
public AjaxResult select(@PathVariable Integer id){
return success(mlService.selectMlId(id));
}
/**
*
*@param ml
* @return
*/
@PostMapping("/add")
@ApiOperation("新增数据")
public AjaxResult add(@RequestBody Ml ml) {
return success(mlService.saveMl(ml));
}
/**
*
*
* @param ml
* @return
*/
@PostMapping("/edit")
@ApiOperation("修改数据")
public AjaxResult update(@RequestBody Ml ml) {
return success(mlService.updateById(ml));
}
/**
*
*
* @param id
* @return
*/
@DeleteMapping("/delete/{id}")
@ApiOperation("删除数据")
public AjaxResult delete(@PathVariable Integer id) {
return success(mlService.deleteMl(id));
}
}

@ -0,0 +1,82 @@
package com.ruoyi.gysl.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.gysl.entity.MonthInformation;
import com.ruoyi.gysl.service.MonthInformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@Api(tags = "月度进展信息")
@RestController
@RequestMapping("gysl/MonthInformation")
public class MonthInformationController extends BaseController {
/**
*
*/
@Resource
private MonthInformationService monthInformationService;
/**
*
*
* @param monthInformation
* @return
*/
@GetMapping("/list")
@ApiOperation("分页查询月度进展信息")
public TableDataInfo list(MonthInformation monthInformation){
startPage();
List<MonthInformation> list = monthInformationService.selectMonthInformation(monthInformation);
return getDataTable(list);
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation("通过主键查询月度进展信息")
public AjaxResult select(@PathVariable Integer id){
return success(monthInformationService.selectMonthInformationId(id));
}
/**
*
*
* @param monthInformation
* @return
*/
@PostMapping("/add")
@ApiOperation("新增数据")
public AjaxResult add(@RequestBody MonthInformation monthInformation){
return success(monthInformationService.saveMonthInformation(monthInformation));
}
/**
*
*
* @param monthInformation
* @return
*/
@PostMapping("edit")
@ApiOperation("修改")
public AjaxResult edit(@RequestBody MonthInformation monthInformation){
return success(monthInformationService.updateById(monthInformation));
}
/**
*
*
* @param id
* @return
*/
@DeleteMapping("/delete/{id}")
@ApiOperation("删除数据")
public AjaxResult delete(@PathVariable Integer id){
return success(monthInformationService.deleteMonthInformation(id));
}
}

@ -0,0 +1,75 @@
package com.ruoyi.gysl.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**(Fmqd)
*
*/
@Data
@ApiModel(value = "Fmqd", description = "负面清单管理")
public class Fmqd {
//主键id
@ApiModelProperty("主键id")
private Integer id;
//项目名称
@ApiModelProperty("项目名称")
private String name;
//现状分类1已建
@ApiModelProperty("现状分类1已建")
private Integer xzfl;
//项目法人单位
@ApiModelProperty("项目法人单位")
private String xmfrdw;
//项目建设起止时间
@ApiModelProperty("项目建设起止时间")
private String xmjsqzsj;
//总投资额
@ApiModelProperty("总投资额")
private BigDecimal ztze;
//总用地面积
@ApiModelProperty("总用地面积")
private BigDecimal zydmj;
//创建者id
@ApiModelProperty("创建者id")
private Integer createId;
//创建时间
@ApiModelProperty("创建时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
//创建者
@ApiModelProperty("创建者")
private String createBy;
//更新者id
@ApiModelProperty("更新者id")
private Long updateId;
//更新者
@ApiModelProperty("更新者")
private String updateBy;
//更新时间
@ApiModelProperty("更新时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updateTime;
}

@ -0,0 +1,61 @@
package com.ruoyi.gysl.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
/**(Ml)
*
*/
@Data
@ApiModel(value = "Ml", description = "目录管理")
public class Ml {
//主键id
@ApiModelProperty("主键id")
private Integer id;
//上楼目录类别
@ApiModelProperty("上楼目录类别")
private Integer slmllb;
//工业大类
@ApiModelProperty("工业大类")
private String gydl;
//产业
@ApiModelProperty("产业")
private String cy;
//创建者id
@ApiModelProperty("创建者id")
private Integer createId;
//创建时间
@ApiModelProperty("创建时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
//创建者
@ApiModelProperty("创建者")
private String createBy;
//更新者id
@ApiModelProperty("更新者id")
private Long updateId;
//更新者
@ApiModelProperty("更新者")
private String updateBy;
//更新时间
@ApiModelProperty("更新时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updateTime;
}

@ -0,0 +1,87 @@
package com.ruoyi.gysl.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* (MonthInformation)
*
*/
@Data
@ApiModel(value = "MonthInformation", description = "月度进展信息")
public class MonthInformation {
//主键id
@ApiModelProperty("主键id")
private Integer id;
//项目id
@ApiModelProperty("项目id")
private Integer xmId;
//进度月份
@ApiModelProperty("进度月份")
private String month;
//状态
@ApiModelProperty("状态")
private Integer status;
//当月完成投资
@ApiModelProperty("当月完成投资")
private BigDecimal dywctz;
//累计完成投资
@ApiModelProperty("累计完成投资")
private BigDecimal ljwctz;
//截至目前累计建成面积
@ApiModelProperty("截至目前累计建成面积")
private BigDecimal jzmqljjcmj;
//贷款额度
@ApiModelProperty("贷款额度")
private BigDecimal dked;
//从选区创建新的临时文件
@ApiModelProperty("项目进展详情")
private BigDecimal xmjzqk;
//创建者id
@ApiModelProperty("创建者id")
private Integer createId;
//创建时间
@ApiModelProperty("创建时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
//创建者
@ApiModelProperty("创建者")
private String createBy;
//更新者id
@ApiModelProperty("更新者id")
private Long updateId;
//更新者
@ApiModelProperty("更新者")
private String updateBy;
//更新时间
@ApiModelProperty("更新时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updateTime;
}

@ -0,0 +1,47 @@
package com.ruoyi.gysl.mapper;
import com.ruoyi.gysl.entity.Fmqd;
import io.lettuce.core.dynamic.annotation.Param;
import org.mapstruct.Mapper;
import java.util.List;
/**
* (Fmqd)访
*/
@Mapper
public interface FmqdServiceMapper {
/**
*
*
* @param fmqd
* @return
*/
List<Fmqd> selectFmqdList(Fmqd fmqd);
/**
*
*
* @param id
* @return
*/
Fmqd selectFmqdById(Integer id);
/**
*
*@param fmqd
* @return
*/
int saveFmqd(Fmqd fmqd);
/**
*
*
* @param fmqd
* @return
*/
int updateFmqd(Fmqd fmqd);
/**
*
*
* @param id
* @return
*/
int deleteFmqd(Integer id);
}

@ -0,0 +1,46 @@
package com.ruoyi.gysl.mapper;
import com.ruoyi.gysl.entity.Ml;
import org.mapstruct.Mapper;
import java.util.List;
/**
* (Ml)访
*/
@Mapper
public interface MlMapper {
/**
*
*
* @param ml
* @return
*/
List<Ml> selectMlList(Ml ml);
/**
*
*
* @param id
* @return
*/
Ml selectMlById(Integer id);
/**
*
*
* @param ml
* @return
*/
int save(Ml ml);
/**
*
*
* @param ml
* @return
*/
int updateMl(Ml ml);
/**
*
* @param id
* @return
*/
int deleteml(Integer id);
}

@ -0,0 +1,47 @@
package com.ruoyi.gysl.mapper;
import com.ruoyi.gysl.entity.MonthInformation;
import org.mapstruct.Mapper;
import java.util.List;
/**
* (MonthInformtion)访
*/
@Mapper
public interface MonthInformationMapper {
/**
*
*
* @param monthInformation
* @return
*/
List<MonthInformation> selectMonthInformationList(MonthInformation monthInformation);
/**
*
*
* @param id
* @return
*/
MonthInformation selectMonthInformationId(Integer id);
/**
*
*
* @param monthInformation
* @return
*/
int save(MonthInformation monthInformation);
/**
*
*
* @param monthInformation
* @return
*/
int updateMonthInformation(MonthInformation monthInformation);
/**
*
* @param id
* @return
*/
int deletemonthInformation(Integer id);
}

@ -0,0 +1,52 @@
package com.ruoyi.gysl.service;
import com.ruoyi.gysl.entity.Fmqd;
import java.util.List;
/**
* (FmqdController)
*
* @author User
*/
public interface FmqdService {
/**
*
*
* @param fmqd
* @return
*/
public List<Fmqd> selectFmqdList(Fmqd fmqd);
/**
*
*
* @param id
* @return
*/
public Fmqd selectFmqdId(Integer id);
/**
*
*@param fmqd
* @return
*/
public int save(Fmqd fmqd);
/**
*
*
* @param fmqd
* @return
*/
public int updateById (Fmqd fmqd);
/**
*
*
* @param id
* @return
*/
public int deleteMapping(Integer id);
}

@ -0,0 +1,45 @@
package com.ruoyi.gysl.service;
import com.ruoyi.gysl.entity.Ml;
import java.util.List;
/**
* (MlController)
*/
public interface MlService {
/**
*
*
* @param ml
* @return
*/
public List<Ml> selectMl(Ml ml);
/**
*
*
* @param id
* @return
*/
Ml selectMlId(Integer id);
/**
*
*
* @param ml
* @return
*/
int saveMl(Ml ml);
/**
*
*
* @param ml
* @return
*/
int updateById(Ml ml);
/**
*
* @param id
* @return
*/
int deleteMl(Integer id);
}

@ -0,0 +1,43 @@
package com.ruoyi.gysl.service;
import com.ruoyi.gysl.entity.MonthInformation;
import java.util.List;
public interface MonthInformationService {
/**
*
*
* @param monthInformation
* @return
*/
List<MonthInformation> selectMonthInformation(MonthInformation monthInformation);
/**
*
*
* @param id
* @return
*/
MonthInformation selectMonthInformationId(Integer id);
/**
*
*
* @param monthInformation
* @return
*/
int saveMonthInformation(MonthInformation monthInformation);
/**
*
*
* @param monthInformation
* @return
*/
int updateById(MonthInformation monthInformation);
/**
*
*
* @param id
* @return
*/
int deleteMonthInformation(Integer id);
}

@ -0,0 +1,74 @@
package com.ruoyi.gysl.service.impl;
import com.ruoyi.gysl.entity.Fmqd;
import com.ruoyi.gysl.mapper.FmqdServiceMapper;
import com.ruoyi.gysl.service.FmqdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*/
@Service
public class FmqdServiceImpl implements FmqdService {
@Autowired
private FmqdServiceMapper fmqdMapper;
/**
*
*
* @param fmqd
* @return
*/
@Override
public List<Fmqd> selectFmqdList(Fmqd fmqd) {
return fmqdMapper.selectFmqdList(fmqd);
}
/**
*
*
* @param id
* @return
*/
@Override
public Fmqd selectFmqdId(Integer id) {
return fmqdMapper.selectFmqdById(id);
}
/**
*
*@param fmqd
* @return
*/
@Override
public int save(Fmqd fmqd) {
return fmqdMapper.saveFmqd(fmqd);
}
/**
*
*
* @param fmqd
* @return
*/
@Override
public int updateById(Fmqd fmqd) {
return fmqdMapper.updateFmqd(fmqd);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteMapping(Integer id) {
return fmqdMapper.deleteFmqd(id);
}
}

@ -0,0 +1,73 @@
package com.ruoyi.gysl.service.impl;
import com.ruoyi.gysl.entity.Ml;
import com.ruoyi.gysl.mapper.MlMapper;
import com.ruoyi.gysl.service.MlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*/
@Service
public class MlServicImpl implements MlService {
@Autowired
private MlMapper mlMapper;
/**
*
*
* @param ml
* @return
*/
@Override
public List<Ml> selectMl(Ml ml) {
return mlMapper.selectMlList(ml);
}
/**
*
*
* @param id
* @return
*/
@Override
public Ml selectMlId(Integer id) {
return mlMapper.selectMlById(id);
}
/**
*
*
* @param ml
* @return
*/
@Override
public int saveMl(Ml ml) {
return mlMapper.save(ml);
}
/**
*
*
* @param ml
* @return
*/
@Override
public int updateById(Ml ml) {
return mlMapper.updateMl(ml);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteMl(Integer id) {
return mlMapper.deleteml(id);
}
}

@ -0,0 +1,70 @@
package com.ruoyi.gysl.service.impl;
import com.ruoyi.gysl.entity.MonthInformation;
import com.ruoyi.gysl.mapper.MonthInformationMapper;
import com.ruoyi.gysl.service.MonthInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
/**
*
*/
@Service
public class MonthInformationImpl implements MonthInformationService {
@Autowired
private MonthInformationMapper monthInformationMapper;
/**
*
*
* @param monthInformation
* @return
*/
@Override
public List<MonthInformation> selectMonthInformation(MonthInformation monthInformation) {
return monthInformationMapper.selectMonthInformationList(monthInformation);
}
/**
*
*
* @param id
* @return
*/
@Override
public MonthInformation selectMonthInformationId(Integer id) {
return monthInformationMapper.selectMonthInformationId(id);
}
/**
*
*
* @param monthInformation
* @return
*/
@Override
public int saveMonthInformation(MonthInformation monthInformation) {
return monthInformationMapper.save(monthInformation);
}
/**
*
*
* @param monthInformation
* @return
*/
@Override
public int updateById(MonthInformation monthInformation) {
return monthInformationMapper.updateMonthInformation(monthInformation);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteMonthInformation(Integer id) {
return monthInformationMapper.deletemonthInformation(id);
}
}

@ -0,0 +1,137 @@
<?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.gysl.mapper.FmqdServiceMapper">
<select id="selectFmqdList" resultType="com.ruoyi.gysl.entity.Fmqd">
SELECT * FROM fmqd
<where>
<if test="id != null">
AND id = #{id}
</if>
<if test="name != null and name != ''">
AND name = #{name}
</if>
<if test="xzfl != null">
AND xzfl = #{xzfl}
</if>
<if test="xmfrdw != null and xmfrdw != ''">
AND xmfrdw = #{xmfrdw}
</if>
<if test="xmjsqzsj != null and xmjsqzsj != ''">
AND xmjsqzsj = #{xmjsqzsj}
</if>
<if test="ztze != null">
AND ztze = #{ztze}
</if>
<if test="zydmj != null">
AND zydmj = #{zydmj}
</if>
<if test="createId != null">
AND create_id = #{createId}
</if>
<if test="createTime != null">
AND create_time = #{createTime}
</if>
<if test="createBy != null and createBy != ''">
AND create_by = #{createBy}
</if>
<if test="updateId != null">
AND update_id = #{updateId}
</if>
<if test="updateBy != null and updateBy != ''">
AND update_by = #{updateBy}
</if>
<if test="updateTime != null">
AND update_time = #{updateTime}
</if>
</where>
</select>
<select id="selectFmqdById" parameterType="Integer" resultType="com.ruoyi.gysl.entity.Fmqd">
SELECT * FROM fmqd
WHERE id = #{id}
</select>
<insert id="saveFmqd" parameterType="com.ruoyi.gysl.entity.Fmqd" useGeneratedKeys="true" keyProperty="id">
INSERT INTO fmqd (
<trim suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="xzfl != null">xzfl,</if>
<if test="xmfrdw != null and xmfrdw != ''">xmfrdw,</if>
<if test="xmjsqzsj != null and xmjsqzsj != ''">xmjsqzsj,</if>
<if test="ztze != null">ztze,</if>
<if test="zydmj != null">zydmj,</if>
<if test="createId != null">create_id,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time</if>
</trim>
) VALUES (
<trim suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if>
<if test="xzfl != null">#{xzfl},</if>
<if test="xmfrdw != null and xmfrdw != ''">#{xmfrdw},</if>
<if test="xmjsqzsj != null and xmjsqzsj != ''">#{xmjsqzsj},</if>
<if test="ztze != null">#{ztze},</if>
<if test="zydmj != null">#{zydmj},</if>
<if test="createId != null">#{createId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime}</if>
</trim>
)
</insert>
<update id="updateFmqd" parameterType="com.ruoyi.gysl.entity.Fmqd">
UPDATE fmqd
<set>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="xzfl != null">
xzfl = #{xzfl},
</if>
<if test="xmfrdw != null and xmfrdw != ''">
xmfrdw = #{xmfrdw},
</if>
<if test="xmjsqzsj != null and xmjsqzsj != ''">
xmjsqzsj = #{xmjsqzsj},
</if>
<if test="ztze != null">
ztze = #{ztze},
</if>
<if test="zydmj != null">
zydmj = #{zydmj},
</if>
<if test="createId != null">
create_id = #{createId},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="createBy != null and createBy != ''">
create_by = #{createBy},
</if>
<if test="updateId != null">
update_id = #{updateId},
</if>
<if test="updateBy != null and updateBy != ''">
update_by = #{updateBy},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
WHERE id = #{id}
</update>
<delete id="deleteFmqd" parameterType="Integer">
DELETE FROM fmqd WHERE id = #{id}
</delete>
</mapper>

@ -0,0 +1,112 @@
<?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.gysl.mapper.MlMapper">
<select id="selectMlList" resultType="com.ruoyi.gysl.entity.Ml">
SELECT * FROM ml
<where>
<if test="id != null">
AND id = #{id}
</if>
<if test="slmllb != null">
AND slmllb = #{slmllb}
</if>
<if test="gydl != null">
AND gydl = #{gydl}
</if>
<if test="cy != null and cy != ''">
AND cy = #{cy}
</if>
<if test="createId != null">
AND create_id = #{createId}
</if>
<if test="createTime != null">
AND create_time = #{createTime}
</if>
<if test="createBy != null and createBy != ''">
AND create_by = #{createBy}
</if>
<if test="updateId != null">
AND update_id = #{updateId}
</if>
<if test="updateBy != null and updateBy != ''">
AND update_by = #{updateBy}
</if>
<if test="updateTime != null">
AND update_time = #{updateTime}
</if>
</where>
</select>
<select id="selectMlById" parameterType="Integer" resultType="com.ruoyi.gysl.entity.Ml">
SELECT * FROM ml
WHERE id = #{id}
</select>
<insert id="save" parameterType="com.ruoyi.gysl.entity.Ml" useGeneratedKeys="true" keyProperty="id">
INSERT INTO ml (
<trim suffixOverrides=",">
<if test="slmllb != null">slmllb,</if>
<if test="gydl != null and gydl != ''">gydl,</if>
<if test="cy != null and cy != ''">cy,</if>
<if test="createId != null">create_id,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time</if>
</trim>
) VALUES (
<trim suffixOverrides=",">
<if test="slmllb != null">#{slmllb},</if>
<if test="gydl != null and gydl != ''">#{gydl},</if>
<if test="cy != null and cy != ''">#{cy},</if>
<if test="createId != null">#{createId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime}</if>
</trim>
)
</insert>
<update id="updateMl" parameterType="com.ruoyi.gysl.entity.Ml">
UPDATE ml
<set>
<if test="slmllb != null">
slmllb = #{slmllb},
</if>
<if test="gydl != null and gydl != ''">
gydl = #{gydl},
</if>
<if test="cy != null and cy != ''">
cy = #{cy},
</if>
<if test="createId != null">
create_id = #{createId},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="createBy != null and createBy != ''">
create_by = #{createBy},
</if>
<if test="updateId != null">
update_id = #{updateId},
</if>
<if test="updateBy != null and updateBy != ''">
update_by = #{updateBy},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
WHERE id = #{id}
</update>
<delete id="deleteml" parameterType="Integer">
DELETE FROM ml WHERE id = #{id}
</delete>
</mapper>

@ -0,0 +1,158 @@
<?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.gysl.mapper.MonthInformationMapper">
<select id="selectMonthInformationList" resultType="com.ruoyi.gysl.entity.MonthInformation">
SELECT * FROM month_information
<where>
<if test="id != null">
AND id = #{id}
</if>
<if test="xmId != null">
AND xm_id = #{xmId}
</if>
<if test="month != null and month != ''">
AND month = #{month}
</if>
<if test="status != null">
AND status = #{status}
</if>
<if test="dywctz != null">
And dywctz = #{dywctz}
</if>
<if test="ljwctz != null">
And ljwctz = #{ljwctz}
</if>
<if test="jzmqljjcmj != null">
And jzmqljjcmj = #{jzmqljjcmj}
</if>
<if test="xmjzqk != null">
And xmjzqk = #{xmjzqk}
</if>
<if test="dked != null and dked !=''">
And dked = #{dked}
</if>
<if test="createId != null">
AND create_id = #{createId}
</if>
<if test="createTime != null">
AND create_time = #{createTime}
</if>
<if test="createBy != null and createBy != ''">
AND create_by = #{createBy}
</if>
<if test="updateId != null">
AND update_id = #{updateId}
</if>
<if test="updateBy != null and updateBy != ''">
AND update_by = #{updateBy}
</if>
<if test="updateTime != null">
AND update_time = #{updateTime}
</if>
</where>
</select>
<select id="selectMonthInformationId" parameterType="Integer" resultType="com.ruoyi.gysl.entity.MonthInformation">
SELECT * FROM month_information
WHERE id = #{id}
</select>
<insert id="save" parameterType="com.ruoyi.gysl.entity.MonthInformation" useGeneratedKeys="true" keyProperty="id">
INSERT INTO month_information (
<trim suffixOverrides=",">
<if test="xmId != null">xm_id,</if>
<if test="month != null and month != ''">month,</if>
<if test="status != null">status,</if>
<if test="dywctz != null">dywctz,</if>
<if test="ljwctz != null">ljwctz,</if>
<if test="jzmqljjcmj != null">jzmqljjcmj,</if>
<if test="xmjzqk != null">xmjzqk,</if>
<if test="dked != null and dked !=''">dked,</if>
<if test="createId != null">create_id,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time</if>
</trim>
) VALUES (
<trim suffixOverrides=",">
<if test="xmId != null">#{xmId},</if>
<if test="month != null and month != ''">#{month},</if>
<if test="status != null">#{status},</if>
<if test="dywctz != null">#{dywctz},</if>
<if test="ljwctz != null">#{ljwctz},</if>
<if test="jzmqljjcmj != null">#{jzmqljjcmj},</if>
<if test="xmjzqk != null">#{xmjzqk},</if>
<if test="dked != null and dked !=''">#{dked},</if>
<if test="createId != null">#{createId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime}</if>
</trim>
)
</insert>
<update id="updateMonthInformation" parameterType="com.ruoyi.gysl.entity.MonthInformation">
UPDATE month_information
<set>
<if test="id != null">
id = #{id},
</if>
<if test="xmId != null">
xm_id = #{xmId},
</if>
<if test="month != null and month != ''">
month = #{month},
</if>
<if test="status != null">
status = #{status},
</if>
<if test="dywctz != null">
dywctz = #{dywctz},
</if>
<if test="ljwctz != null">
ljwctz = #{ljwctz},
</if>
<if test="jzmqljjcmj != null">
jzmqljjcmj = #{jzmqljjcmj},
</if>
<if test="xmjzqk != null">
xmjzqk = #{xmjzqk},
</if>
<if test="dked != null and dked !=''">
dked = #{dked},
</if>
<if test="createId != null">
create_id = #{createId},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="createBy != null and createBy != ''">
create_by = #{createBy},
</if>
<if test="updateId != null">
update_id = #{updateId},
</if>
<if test="updateBy != null and updateBy != ''">
update_by = #{updateBy},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
WHERE id = #{id}
</update>
<delete id="deletemonthInformation" parameterType="Integer">
DELETE FROM month_information WHERE id = #{id}
</delete>
</mapper>
Loading…
Cancel
Save