合同模板
This commit is contained in:
parent
8f30d81e35
commit
16987ed624
|
|
@ -74,4 +74,13 @@ public class BmContractController extends BaseController {
|
|||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "合同模板列表")
|
||||
@GetMapping("/lisTemplate")
|
||||
public AjaxResult lisTemplate(BmContract bmContract) {
|
||||
startPage();
|
||||
List<BmContract> list = bmContractService.lisTemplate(bmContract);
|
||||
return AjaxResult.success(getDataTable(list));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,4 +45,16 @@ public class BmContract {
|
|||
|
||||
@ApiModelProperty(value = "文件附件")
|
||||
private List<BmFileInfo> bmFileInfoList;
|
||||
|
||||
@ApiModelProperty(value = "合同模板所属公司")
|
||||
private Integer companyId;
|
||||
|
||||
@ApiModelProperty(value = "0:系统模版 1:用户模版")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "模板内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "模板名称")
|
||||
private String templateName;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,4 +25,6 @@ public interface BmContractMapper {
|
|||
Integer updateStatus(BmContract bmContract);
|
||||
|
||||
Integer updateStatusOther(BmContract bmContract);
|
||||
|
||||
List<BmContract> lisTemplate(BmContract bmContract);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,6 @@ public interface BmContractService {
|
|||
Integer del(BmContract bmContract);
|
||||
|
||||
Integer updateStatus(BmContract bmContract);
|
||||
|
||||
List<BmContract> lisTemplate(BmContract bmContract);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,6 +115,11 @@ public class BmContractServiceImpl implements BmContractService {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BmContract> lisTemplate(BmContract bmContract) {
|
||||
return bmContractMapper.lisTemplate(bmContract);
|
||||
}
|
||||
|
||||
private String getString() {
|
||||
//根据前台传过来的数据,生成需求编号
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ public class DevInfoController extends BaseController {
|
|||
/**
|
||||
* 设备信息录入--保存草稿--不校验必填
|
||||
*/
|
||||
@ApiOperation(value = "设备信息录入--保存草稿--不校验必填")
|
||||
@ApiOperation(value = "草稿新增(该接口已废弃)")
|
||||
@PostMapping("/insertDraft")
|
||||
public AjaxResult insertDraft(@NotNull @RequestBody DevInfo devInfo) {
|
||||
return devInfoService.insertDraft(devInfo);
|
||||
|
|
|
|||
|
|
@ -50,4 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
WHERE DATE_FORMAT(create_time, '%y%m') = DATE_FORMAT(#{date}, '%y%m')
|
||||
ORDER BY create_time DESC LIMIT 1
|
||||
</select>
|
||||
<select id="lisTemplate" resultType="com.bonus.material.contract.domain.BmContract">
|
||||
select * from bm_contract_template where type = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue