|
@@ -19,6 +19,7 @@ import org.springblade.core.boot.ctrl.BladeController;
|
|
|
import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.secure.utils.SecureUtil;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
+import org.springblade.core.tool.utils.BeanUtil;
|
|
|
import org.springblade.system.entity.Dept;
|
|
|
import org.springblade.system.user.entity.User;
|
|
|
import org.springblade.system.user.feign.IUserClient;
|
|
@@ -200,5 +201,19 @@ public class ExMaTwoController extends BladeController {
|
|
|
return R.data(result);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getContractInvoiceInfo")
|
|
|
+ @ApiOperationSupport(order = 7)
|
|
|
+ @ApiOperation(value = "获取合同段发票信息", notes = "传入项目id")
|
|
|
+ public R<ContractInvoiceInfoVO> getContractInvoiceInfo(@RequestParam String projectId) {
|
|
|
+ List<ControlContractInfo> query = jdbcTemplate.query("select * from c_control_contract_info where project_id = " + projectId, new BeanPropertyRowMapper<>(ControlContractInfo.class));
|
|
|
+ if (query.size() == 1) {
|
|
|
+ ControlContractInfo controlContractInfo = query.get(0);
|
|
|
+ if (controlContractInfo != null) {
|
|
|
+ ContractInvoiceInfoVO vo = BeanUtil.copyProperties(controlContractInfo, ContractInvoiceInfoVO.class);
|
|
|
+ return R.data(vo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return R.data(null);
|
|
|
+ }
|
|
|
|
|
|
}
|