条码类别维护,收费项目维护,报告单规则维护
This commit is contained in:
parent
deec2eea9e
commit
d4bdb09881
@ -6,6 +6,7 @@ import lombok.NoArgsConstructor;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@ -23,4 +24,11 @@ public class XmFee {
|
|||||||
private String attention;
|
private String attention;
|
||||||
private String indication;
|
private String indication;
|
||||||
private String affect;
|
private String affect;
|
||||||
|
private Integer bgts;
|
||||||
|
private String yblx;
|
||||||
|
private String dept;
|
||||||
|
private String lisgroup1;
|
||||||
|
private String lisgroup2;
|
||||||
|
private String lisgroup3;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,57 +7,62 @@ package com.czlis.common.enums;
|
|||||||
*/
|
*/
|
||||||
public enum BusinessType {
|
public enum BusinessType {
|
||||||
/**
|
/**
|
||||||
* 其它
|
* 其它O
|
||||||
*/
|
*/
|
||||||
OTHER,
|
OTHER,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增1
|
||||||
*/
|
*/
|
||||||
INSERT,
|
INSERT,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改
|
* 修改2
|
||||||
*/
|
*/
|
||||||
UPDATE,
|
UPDATE,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除
|
* 删除3
|
||||||
*/
|
*/
|
||||||
DELETE,
|
DELETE,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 授权
|
* 授权4
|
||||||
*/
|
*/
|
||||||
GRANT,
|
GRANT,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出
|
* 导出5
|
||||||
*/
|
*/
|
||||||
EXPORT,
|
EXPORT,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导入
|
* 导入6
|
||||||
*/
|
*/
|
||||||
IMPORT,
|
IMPORT,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 强退
|
* 强退7
|
||||||
*/
|
*/
|
||||||
FORCE,
|
FORCE,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成代码
|
* 生成代码8
|
||||||
*/
|
*/
|
||||||
GENCODE,
|
GENCODE,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 清空数据
|
* 清空数据9
|
||||||
*/
|
*/
|
||||||
CLEAN,
|
CLEAN,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接口调用
|
* 接口调用10
|
||||||
*/
|
*/
|
||||||
INTERFACE_INVOKE,
|
INTERFACE_INVOKE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除明细11
|
||||||
|
*/
|
||||||
|
DELETE_DETAIL,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,15 +42,14 @@ public class FeeitemClassController extends BaseController {
|
|||||||
|
|
||||||
@ApiOperation("新增条码类别")
|
@ApiOperation("新增条码类别")
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
public Result add(@RequestBody LabFeeitemClass labFeeitemClass){
|
public Result add(@RequestBody List<LabFeeitemClass> labFeeitemClassList){
|
||||||
feeitemClassService.add(labFeeitemClass);
|
return feeitemClassService.add(labFeeitemClassList);
|
||||||
return new Result("0","新增条码类别成功!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("修改条码类别")
|
@ApiOperation("修改条码类别")
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
public Result update(@RequestBody LabFeeitemClass labFeeitemClass){
|
public Result update(@RequestBody List<LabFeeitemClass> labFeeitemClassList){
|
||||||
feeitemClassService.update(labFeeitemClass);
|
feeitemClassService.update(labFeeitemClassList);
|
||||||
return new Result("0","修改条码成功!");
|
return new Result("0","修改条码成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
package com.czlis.mzcx.controller;
|
package com.czlis.mzcx.controller;
|
||||||
|
|
||||||
|
import com.czlis.common.annotation.Anonymous;
|
||||||
import com.czlis.common.core.controller.BaseController;
|
import com.czlis.common.core.controller.BaseController;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.common.core.page.TableDataInfo;
|
import com.czlis.common.core.page.TableDataInfo;
|
||||||
import com.czlis.common.core.domain.entity.lis.XmFee;
|
import com.czlis.common.core.domain.entity.lis.XmFee;
|
||||||
|
import com.czlis.mzcx.pojo.XmFeeDTO;
|
||||||
import com.czlis.mzcx.service.XmFeeService;
|
import com.czlis.mzcx.service.XmFeeService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@ -29,28 +31,30 @@ public class XmFeeController extends BaseController {
|
|||||||
@GetMapping("/query")
|
@GetMapping("/query")
|
||||||
public TableDataInfo query(String sfxmdh,String yljg,String xmlb){
|
public TableDataInfo query(String sfxmdh,String yljg,String xmlb){
|
||||||
startPage();
|
startPage();
|
||||||
List<XmFee> xmFeeList = xmFeeService.query(sfxmdh,yljg,xmlb);
|
List<XmFeeDTO> xmFeeList = xmFeeService.query(sfxmdh,yljg,xmlb);
|
||||||
return getDataTable(xmFeeList);
|
return getDataTable(xmFeeList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("新增收费项目")
|
@ApiOperation("新增收费项目")
|
||||||
@PostMapping("/addXmfee")
|
@PostMapping("/addXmfee")
|
||||||
public Result addXmfee(@RequestBody XmFee xmFee){
|
public Result addXmfee(@RequestBody List<XmFee> xmFeeList){
|
||||||
xmFeeService.addXmFee(xmFee);
|
log.info("新增收费项目:{}",xmFeeList);
|
||||||
return new Result("0","新增收费项目成功!");
|
return xmFeeService.addXmFee(xmFeeList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("修改收费项目")
|
@ApiOperation("修改收费项目")
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
public Result update(@RequestBody XmFee xmFee){
|
public Result update(@RequestBody List<XmFee> xmFeeList){
|
||||||
xmFeeService.update(xmFee);
|
log.info("修改收费项目:{}",xmFeeList);
|
||||||
|
xmFeeService.update(xmFeeList);
|
||||||
return new Result("0","修改收费项目成功!");
|
return new Result("0","修改收费项目成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("删除收费项目")
|
@ApiOperation("删除收费项目")
|
||||||
@DeleteMapping("/del")
|
@DeleteMapping("/del")
|
||||||
public Result delete(String sflbdh){
|
public Result delete(String sfxmdh){
|
||||||
return xmFeeService.delete(sflbdh);
|
log.info("删除收费项目:{}",sfxmdh);
|
||||||
|
return xmFeeService.delete(sfxmdh);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,4 +15,5 @@ public interface RptgetRuleMapper {
|
|||||||
void delete(String bglqdh);
|
void delete(String bglqdh);
|
||||||
void deleteDetail(String bglqdh, Integer xh);
|
void deleteDetail(String bglqdh, Integer xh);
|
||||||
Long getLabRptgetRuleDetailCount(String bglqdh);
|
Long getLabRptgetRuleDetailCount(String bglqdh);
|
||||||
|
Integer getMaxNo();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
package com.czlis.mzcx.mapper;
|
package com.czlis.mzcx.mapper;
|
||||||
|
|
||||||
import com.czlis.common.core.domain.entity.lis.XmFee;
|
import com.czlis.common.core.domain.entity.lis.XmFee;
|
||||||
|
import com.czlis.mzcx.pojo.XmFeeDTO;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface XmFeeMapper {
|
public interface XmFeeMapper {
|
||||||
List<XmFee> query(@Param("sfxmdh") String sfxmdh,@Param("yljg") String yljg,@Param("xmlb") String xmlb);
|
List<XmFeeDTO> query(@Param("sfxmdh") String sfxmdh, @Param("yljg") String yljg, @Param("xmlb") String xmlb);
|
||||||
|
|
||||||
void add(XmFee xmFee);
|
void add(XmFee xmFee);
|
||||||
|
|
||||||
|
|||||||
35
mzcx/src/main/java/com/czlis/mzcx/pojo/XmFeeDTO.java
Normal file
35
mzcx/src/main/java/com/czlis/mzcx/pojo/XmFeeDTO.java
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
package com.czlis.mzcx.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class XmFeeDTO {
|
||||||
|
private String sfxmdh;
|
||||||
|
private String sfxmmc;
|
||||||
|
private String xmlb;
|
||||||
|
private BigDecimal dj;
|
||||||
|
private String zjf;
|
||||||
|
private String bz;
|
||||||
|
private Integer bglqdh;
|
||||||
|
private String spec;
|
||||||
|
private String yljg;
|
||||||
|
private String lisgroup;
|
||||||
|
private String attention;
|
||||||
|
private String indication;
|
||||||
|
private String affect;
|
||||||
|
private Integer bgts;
|
||||||
|
private String yblx;
|
||||||
|
private String dept;
|
||||||
|
private String lisgroup1;
|
||||||
|
private String lisgroup2;
|
||||||
|
private String lisgroup3;
|
||||||
|
private String sflbmc;
|
||||||
|
private String bkcolor;
|
||||||
|
private String sflbdh;
|
||||||
|
}
|
||||||
@ -8,9 +8,9 @@ import java.util.List;
|
|||||||
public interface FeeitemClassService {
|
public interface FeeitemClassService {
|
||||||
List<LabFeeitemClass> query(String sflbdh, String sflbmc);
|
List<LabFeeitemClass> query(String sflbdh, String sflbmc);
|
||||||
|
|
||||||
void add(LabFeeitemClass labFeeitemClass);
|
Result add(List<LabFeeitemClass> labFeeitemClassList);
|
||||||
|
|
||||||
void update(LabFeeitemClass labFeeitemClass);
|
void update(List<LabFeeitemClass> labFeeitemClassList);
|
||||||
|
|
||||||
Result delete(String sflbdh);
|
Result delete(String sflbdh);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,15 +2,16 @@ package com.czlis.mzcx.service;
|
|||||||
|
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.common.core.domain.entity.lis.XmFee;
|
import com.czlis.common.core.domain.entity.lis.XmFee;
|
||||||
|
import com.czlis.mzcx.pojo.XmFeeDTO;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface XmFeeService {
|
public interface XmFeeService {
|
||||||
List<XmFee> query(String sfxmdh, String yljg, String xmlb);
|
List<XmFeeDTO> query(String sfxmdh, String yljg, String xmlb);
|
||||||
|
|
||||||
void addXmFee(XmFee xmFee);
|
Result addXmFee(List<XmFee> xmFeeList);
|
||||||
|
|
||||||
void update(XmFee xmFee);
|
void update(List<XmFee> xmFeeList);
|
||||||
|
|
||||||
Result delete(String sfxmdh);
|
Result delete(String sfxmdh);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
package com.czlis.mzcx.service.impl;
|
package com.czlis.mzcx.service.impl;
|
||||||
|
|
||||||
|
import com.czlis.common.annotation.Log;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.enums.BusinessType;
|
||||||
import com.czlis.mzcx.mapper.FeeitemClassMapper;
|
import com.czlis.mzcx.mapper.FeeitemClassMapper;
|
||||||
import com.czlis.common.core.domain.entity.lis.LabFeeitemClass;
|
import com.czlis.common.core.domain.entity.lis.LabFeeitemClass;
|
||||||
import com.czlis.mzcx.service.FeeitemClassService;
|
import com.czlis.mzcx.service.FeeitemClassService;
|
||||||
@ -29,18 +31,28 @@ public class FeeitemClassServiceImpl implements FeeitemClassService {
|
|||||||
return feeitemClassMapper.query(sflbdh, sflbmc);
|
return feeitemClassMapper.query(sflbdh, sflbmc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "条码类别",businessType = BusinessType.INSERT)
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public void add(LabFeeitemClass labFeeitemClass) {
|
public Result add(List<LabFeeitemClass> labFeeitemClassList) {
|
||||||
|
for (LabFeeitemClass labFeeitemClass : labFeeitemClassList) {
|
||||||
|
List<LabFeeitemClass> existList = feeitemClassMapper.query(labFeeitemClass.getSflbdh(), "");
|
||||||
|
if(existList.size()>0) return new Result("-1","条码类别代码:"+labFeeitemClass.getSflbdh()+"已存在!");
|
||||||
feeitemClassMapper.add(labFeeitemClass);
|
feeitemClassMapper.add(labFeeitemClass);
|
||||||
}
|
}
|
||||||
|
return new Result("0","新增条码类别成功!");
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
@Override
|
|
||||||
public void update(LabFeeitemClass labFeeitemClass) {
|
|
||||||
feeitemClassMapper.update(labFeeitemClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "条码类别",businessType = BusinessType.UPDATE)
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
@Override
|
||||||
|
public void update(List<LabFeeitemClass> labFeeitemClassList) {
|
||||||
|
for (LabFeeitemClass labFeeitemClass : labFeeitemClassList) {
|
||||||
|
feeitemClassMapper.update(labFeeitemClass);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Log(title = "条码类别",businessType = BusinessType.DELETE)
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public Result delete(String sflbdh) {
|
public Result delete(String sflbdh) {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
package com.czlis.mzcx.service.impl;
|
package com.czlis.mzcx.service.impl;
|
||||||
|
|
||||||
|
import com.czlis.common.annotation.Log;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.enums.BusinessType;
|
||||||
import com.czlis.mzcx.mapper.RptgetRuleMapper;
|
import com.czlis.mzcx.mapper.RptgetRuleMapper;
|
||||||
import com.czlis.common.core.domain.entity.lis.LabRptgetRule;
|
import com.czlis.common.core.domain.entity.lis.LabRptgetRule;
|
||||||
import com.czlis.mzcx.pojo.LabRptgetRuleDTO;
|
import com.czlis.mzcx.pojo.LabRptgetRuleDTO;
|
||||||
@ -33,10 +35,13 @@ public class RptgetRuleServiceImpl implements RptgetRuleService {
|
|||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
|
@Log(title = "报告领取规则",businessType = BusinessType.INSERT)
|
||||||
public Result add(LabRptgetRuleDTO labRptgetRuleDTO) {
|
public Result add(LabRptgetRuleDTO labRptgetRuleDTO) {
|
||||||
List<LabRptgetRule> ruleList = labRptgetRuleDTO.getRuleList();
|
List<LabRptgetRule> ruleList = labRptgetRuleDTO.getRuleList();
|
||||||
|
Integer maxNo = rptgetRuleMapper.getMaxNo();
|
||||||
for (LabRptgetRule labRptgetRule : ruleList) {
|
for (LabRptgetRule labRptgetRule : ruleList) {
|
||||||
Integer bglqdh = labRptgetRule.getBglqdh();
|
Integer bglqdh = maxNo++;
|
||||||
|
labRptgetRule.setBglqdh(bglqdh);
|
||||||
if(bglqdh == null || bglqdh == 0) return new Result("-1","报告列表中的报告领取代码不可以为空!");
|
if(bglqdh == null || bglqdh == 0) return new Result("-1","报告列表中的报告领取代码不可以为空!");
|
||||||
rptgetRuleMapper.insert(labRptgetRule);
|
rptgetRuleMapper.insert(labRptgetRule);
|
||||||
}
|
}
|
||||||
@ -54,6 +59,7 @@ public class RptgetRuleServiceImpl implements RptgetRuleService {
|
|||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
|
@Log(title = "报告领取规则",businessType = BusinessType.UPDATE)
|
||||||
public Result update(LabRptgetRuleDTO labRptgetRuleDTO) {
|
public Result update(LabRptgetRuleDTO labRptgetRuleDTO) {
|
||||||
List<LabRptgetRule> ruleList = labRptgetRuleDTO.getRuleList();
|
List<LabRptgetRule> ruleList = labRptgetRuleDTO.getRuleList();
|
||||||
for (LabRptgetRule labRptgetRule : ruleList) {
|
for (LabRptgetRule labRptgetRule : ruleList) {
|
||||||
@ -72,6 +78,7 @@ public class RptgetRuleServiceImpl implements RptgetRuleService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Log(title = "报告领取规则",businessType = BusinessType.DELETE)
|
||||||
public Result delete(String bglqdh) {
|
public Result delete(String bglqdh) {
|
||||||
Long labRptgetRuleDetailCount = rptgetRuleMapper.getLabRptgetRuleDetailCount(bglqdh);
|
Long labRptgetRuleDetailCount = rptgetRuleMapper.getLabRptgetRuleDetailCount(bglqdh);
|
||||||
if(labRptgetRuleDetailCount > 0) return new Result("-1","存在报告领取规则明细数据,请先删除明细数据再删除列表数据!");
|
if(labRptgetRuleDetailCount > 0) return new Result("-1","存在报告领取规则明细数据,请先删除明细数据再删除列表数据!");
|
||||||
@ -79,6 +86,7 @@ public class RptgetRuleServiceImpl implements RptgetRuleService {
|
|||||||
return new Result("0","删除报告领取规则列表成功!");
|
return new Result("0","删除报告领取规则列表成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "报告领取规则",businessType = BusinessType.DELETE_DETAIL)
|
||||||
@Override
|
@Override
|
||||||
public Result deleteDetail(String bglqdh, Integer xh) {
|
public Result deleteDetail(String bglqdh, Integer xh) {
|
||||||
rptgetRuleMapper.deleteDetail(bglqdh,xh);
|
rptgetRuleMapper.deleteDetail(bglqdh,xh);
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
package com.czlis.mzcx.service.impl;
|
package com.czlis.mzcx.service.impl;
|
||||||
|
|
||||||
|
import com.czlis.common.annotation.Anonymous;
|
||||||
|
import com.czlis.common.annotation.Log;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.enums.BusinessType;
|
||||||
import com.czlis.mzcx.mapper.XmFeeMapper;
|
import com.czlis.mzcx.mapper.XmFeeMapper;
|
||||||
import com.czlis.common.core.domain.entity.lis.XmFee;
|
import com.czlis.common.core.domain.entity.lis.XmFee;
|
||||||
|
import com.czlis.mzcx.pojo.XmFeeDTO;
|
||||||
import com.czlis.mzcx.service.XmFeeService;
|
import com.czlis.mzcx.service.XmFeeService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -20,28 +24,38 @@ public class XmFeeServiceImpl implements XmFeeService {
|
|||||||
private XmFeeMapper xmFeeMapper;
|
private XmFeeMapper xmFeeMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<XmFee> query(String sfxmdh, String yljg, String xmlb) {
|
public List<XmFeeDTO> query(String sfxmdh, String yljg, String xmlb) {
|
||||||
return xmFeeMapper.query(sfxmdh,yljg,xmlb);
|
return xmFeeMapper.query(sfxmdh,yljg,xmlb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "收费项目维护",businessType = BusinessType.IMPORT)
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public void addXmFee(XmFee xmFee) {
|
public Result addXmFee(List<XmFee> xmFeeList) {
|
||||||
|
for (XmFee xmFee : xmFeeList) {
|
||||||
|
List<XmFeeDTO> existList = xmFeeMapper.query(xmFee.getSfxmdh(), xmFee.getYljg(), "");
|
||||||
|
if(existList.size()>0) return new Result("-1","已经存在收费项目代码:"+xmFee.getSfxmdh()+"的项目!");
|
||||||
xmFeeMapper.add(xmFee);
|
xmFeeMapper.add(xmFee);
|
||||||
}
|
}
|
||||||
|
return new Result("0","添加成功!");
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
@Override
|
|
||||||
public void update(XmFee xmFee) {
|
|
||||||
xmFeeMapper.update(xmFee);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Log(title = "收费项目维护",businessType = BusinessType.UPDATE)
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
@Override
|
||||||
|
public void update(List<XmFee> xmFeeList) {
|
||||||
|
for (XmFee xmFee : xmFeeList) {
|
||||||
|
xmFeeMapper.update(xmFee);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Log(title = "收费项目维护",businessType = BusinessType.DELETE)
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public Result delete(String sfxmdh) {
|
public Result delete(String sfxmdh) {
|
||||||
//这里需要补逻辑,如果有对应的收费项目,这里应该不能删,要先去掉对应的收费项目
|
//后期再考虑增加删除限制判断
|
||||||
Long xmFeeVsCount = xmFeeMapper.getXmFeeVsCount(sfxmdh);
|
//Long xmFeeVsCount = xmFeeMapper.getXmFeeVsCount(sfxmdh);
|
||||||
if(xmFeeVsCount > 0) return new Result("-1","有关联的收费项目代码,要先删掉关联的项目代码才能删掉对应的项目!");
|
//if(xmFeeVsCount > 0) return new Result("-1","有关联的收费项目代码,要先删掉关联的项目代码才能删掉对应的项目!");
|
||||||
xmFeeMapper.delete(sfxmdh);
|
xmFeeMapper.delete(sfxmdh);
|
||||||
return new Result("0","删除收费项目代码成功!");
|
return new Result("0","删除收费项目代码成功!");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,4 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select count(1) from lab_rptgetruledetail where bglqdh = #{bglqdh}
|
select count(1) from lab_rptgetruledetail where bglqdh = #{bglqdh}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getMaxNo" resultType="int">
|
||||||
|
SELECT max(bglqdh) FROM lab_rptgetrule
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -3,13 +3,19 @@
|
|||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.czlis.mzcx.mapper.XmFeeMapper">
|
<mapper namespace="com.czlis.mzcx.mapper.XmFeeMapper">
|
||||||
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.XmFee">
|
<select id="query" resultType="com.czlis.mzcx.pojo.XmFeeDTO">
|
||||||
select * from xm_Fee
|
select xm_Fee.*,
|
||||||
|
lab_feeitemclass.sflbmc,
|
||||||
|
lab_feeitemclass.bkcolor,
|
||||||
|
lab_feeitemclass.sflbdh
|
||||||
|
from xm_Fee left join lab_feeitem_vs_class on lab_feeitem_vs_class.sfxmdh=xm_fee.sfxmdh
|
||||||
|
LEFT JOIN lab_feeitemclass ON lab_feeitem_vs_class.sflbdh=lab_feeitemclass.sflbdh
|
||||||
<where>
|
<where>
|
||||||
<if test="sfxmdh != null and sfxmdh != ''"> and sfxmdh = #{sfxmdh}</if>
|
<if test="sfxmdh != null and sfxmdh != ''"> and (xm_Fee.sfxmdh like '%'+#{sfxmdh}+'%' or xm_Fee.sfxmmc like '%'+#{sfxmdh}+'%')</if>
|
||||||
<if test="yljg != null and yljg != ''"> and yljg = #{yljg}</if>
|
<if test="yljg != null and yljg != ''"> and xm_Fee.yljg = #{yljg}</if>
|
||||||
<if test="xmlb != null and xmlb != ''"> and xmlb = #{xmlb}</if>
|
<if test="xmlb != null and xmlb != ''"> and xm_Fee.xmlb = #{xmlb}</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by xm_Fee.sfxmdh
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="add" parameterType="com.czlis.common.core.domain.entity.lis.XmFee">
|
<insert id="add" parameterType="com.czlis.common.core.domain.entity.lis.XmFee">
|
||||||
@ -26,6 +32,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="attention != null and attention != ''">attention,</if>
|
<if test="attention != null and attention != ''">attention,</if>
|
||||||
<if test="indication != null and indication != ''">indication,</if>
|
<if test="indication != null and indication != ''">indication,</if>
|
||||||
<if test="affect != null and affect != ''">affect,</if>
|
<if test="affect != null and affect != ''">affect,</if>
|
||||||
|
<if test="yblx != null and yblx != ''">yblx,</if>
|
||||||
|
<if test="bgts != null">bgts,</if>
|
||||||
|
<if test="dept != null and dept != ''"> dept,</if>
|
||||||
sfxmdh
|
sfxmdh
|
||||||
)values (
|
)values (
|
||||||
<if test="sfxmmc != null and sfxmmc != ''">#{sfxmmc},</if>
|
<if test="sfxmmc != null and sfxmmc != ''">#{sfxmmc},</if>
|
||||||
@ -40,6 +49,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="attention != null and attention != ''">#{attention},</if>
|
<if test="attention != null and attention != ''">#{attention},</if>
|
||||||
<if test="indication != null and indication != ''">#{indication},</if>
|
<if test="indication != null and indication != ''">#{indication},</if>
|
||||||
<if test="affect != null and affect != ''">#{affect},</if>
|
<if test="affect != null and affect != ''">#{affect},</if>
|
||||||
|
<if test="yblx != null and yblx != ''">#{yblx},</if>
|
||||||
|
<if test="bgts != null">#{bgts},</if>
|
||||||
|
<if test="dept != null and dept != ''"> #{dept},</if>
|
||||||
#{sfxmdh}
|
#{sfxmdh}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
@ -59,7 +71,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="attention != null and attention != ''">attention = #{attention},</if>
|
<if test="attention != null and attention != ''">attention = #{attention},</if>
|
||||||
<if test="indication != null and indication != ''">indication = #{indication},</if>
|
<if test="indication != null and indication != ''">indication = #{indication},</if>
|
||||||
<if test="affect != null and affect != ''">affect = #{affect},</if>
|
<if test="affect != null and affect != ''">affect = #{affect},</if>
|
||||||
#{sfxmdh}
|
<if test="yblx != null and yblx != ''">yblx = #{yblx},</if>
|
||||||
|
<if test="bgts != null">bgts = #{bgts},</if>
|
||||||
|
<if test="dept != null and dept != ''"> dept = #{dept},</if>
|
||||||
|
sfxmdh = #{sfxmdh}
|
||||||
</set>
|
</set>
|
||||||
where sfxmdh = #{sfxmdh}
|
where sfxmdh = #{sfxmdh}
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user