一些bug修改
This commit is contained in:
parent
07bab4687b
commit
3b6a55fcf3
|
|
@ -34,6 +34,8 @@ public class IM3202 extends BaseInputModel{
|
||||||
private BigDecimal cash_payamt;
|
private BigDecimal cash_payamt;
|
||||||
@IMField(key = "fixmedins_setl_cnt", name = "定点医药机构结算笔数", required = true)
|
@IMField(key = "fixmedins_setl_cnt", name = "定点医药机构结算笔数", required = true)
|
||||||
private BigDecimal fixmedins_setl_cnt;
|
private BigDecimal fixmedins_setl_cnt;
|
||||||
|
@IMField(key = "clr_type", name = "清算类别", required = true)
|
||||||
|
private String clr_type;
|
||||||
@IMField(key = "refd_setl_flag", name = "退费结算标志")
|
@IMField(key = "refd_setl_flag", name = "退费结算标志")
|
||||||
private String refd_setl_flag;
|
private String refd_setl_flag;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
/**
|
/**
|
||||||
|
|
@ -16,6 +17,7 @@ import java.io.Serializable;
|
||||||
*/
|
*/
|
||||||
@TableName("goods_cate")
|
@TableName("goods_cate")
|
||||||
@ApiModel(value = "GoodsCate对象", description = "")
|
@ApiModel(value = "GoodsCate对象", description = "")
|
||||||
|
@Data
|
||||||
public class GoodsCate implements Serializable {
|
public class GoodsCate implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
@ -27,46 +29,4 @@ public class GoodsCate implements Serializable {
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(Integer type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "GoodsCate{" +
|
|
||||||
"id = " + id +
|
|
||||||
", name = " + name +
|
|
||||||
", type = " + type +
|
|
||||||
", sort = " + sort +
|
|
||||||
"}";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,14 @@ public class GoodsCateService {
|
||||||
* 参数 cateList 分类列表
|
* 参数 cateList 分类列表
|
||||||
*/
|
*/
|
||||||
public void save(List<GoodsCate> cateList){
|
public void save(List<GoodsCate> cateList){
|
||||||
|
for (GoodsCate cate : cateList){
|
||||||
|
if (cate.getName() == null || cate.getName().isEmpty()){
|
||||||
|
throw new RuntimeException("分类名称不能为空");
|
||||||
|
}
|
||||||
|
if (cate.getType() == null){
|
||||||
|
throw new RuntimeException("分类父类型不能为空");
|
||||||
|
}
|
||||||
|
}
|
||||||
goodsCateMapper.insertOrUpdate(cateList);
|
goodsCateMapper.insertOrUpdate(cateList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,8 @@ public class SocialReconciliationService extends BaseService {
|
||||||
inData.setInsutype(dto.getInsuranceType());
|
inData.setInsutype(dto.getInsuranceType());
|
||||||
inData.setClr_type(dto.getReconciliationType());
|
inData.setClr_type(dto.getReconciliationType());
|
||||||
inData.setSetl_optins(dto.getHandlingInstitution());
|
inData.setSetl_optins(dto.getHandlingInstitution());
|
||||||
inData.setStmt_begndate(dto.getBeginTime().toString());
|
inData.setStmt_begndate(dto.getBeginTime().format(FORMATTER));
|
||||||
inData.setStmt_enddate(dto.getEndTime().toString());
|
inData.setStmt_enddate(dto.getEndTime().format(FORMATTER));
|
||||||
inData.setMedfee_sumamt(dto.getTotalMedicalCost());
|
inData.setMedfee_sumamt(dto.getTotalMedicalCost());
|
||||||
inData.setFund_pay_sumamt(dto.getTotalFundPayment());
|
inData.setFund_pay_sumamt(dto.getTotalFundPayment());
|
||||||
inData.setAcct_pay(dto.getTotalPersonalAccountPayment());
|
inData.setAcct_pay(dto.getTotalPersonalAccountPayment());
|
||||||
|
|
@ -223,13 +223,14 @@ public class SocialReconciliationService extends BaseService {
|
||||||
IM3202.Data inData = new IM3202.Data();
|
IM3202.Data inData = new IM3202.Data();
|
||||||
inData.setSetl_optins(dto.getHandlingInstitution());
|
inData.setSetl_optins(dto.getHandlingInstitution());
|
||||||
inData.setFile_qury_no(om9101.getFile_qury_no());
|
inData.setFile_qury_no(om9101.getFile_qury_no());
|
||||||
inData.setStmt_begndate(dto.getBeginTime().toString());
|
inData.setStmt_begndate(dto.getBeginTime().format(FORMATTER));
|
||||||
inData.setStmt_enddate(dto.getEndTime().toString());
|
inData.setStmt_enddate(dto.getEndTime().format(FORMATTER));
|
||||||
inData.setMedfee_sumamt(dto.getTotalMedicalCost());
|
inData.setMedfee_sumamt(dto.getTotalMedicalCost());
|
||||||
inData.setFund_pay_sumamt(dto.getTotalFundPayment());
|
inData.setFund_pay_sumamt(dto.getTotalFundPayment());
|
||||||
inData.setCash_payamt(new BigDecimal(0));
|
inData.setCash_payamt(new BigDecimal(0));
|
||||||
inData.setFixmedins_setl_cnt(BigDecimal.valueOf(dto.getSettlementCount()));
|
inData.setFixmedins_setl_cnt(BigDecimal.valueOf(dto.getSettlementCount()));
|
||||||
inData.setRefd_setl_flag("0");
|
inData.setClr_type(config.get("social", "medType"));
|
||||||
|
|
||||||
im3202.setData(inData);
|
im3202.setData(inData);
|
||||||
OM3202 om3202 = socialRequest.call3202(im3202);
|
OM3202 om3202 = socialRequest.call3202(im3202);
|
||||||
Map<String, Object> input_dw = new HashMap<>();
|
Map<String, Object> input_dw = new HashMap<>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue