重庆需求变更代码提交
This commit is contained in:
parent
7705e3245a
commit
2894862a48
|
|
@ -5,6 +5,7 @@ import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -125,6 +126,11 @@ public class BmProjectLot {
|
||||||
@Excel(name = "工程类型")
|
@Excel(name = "工程类型")
|
||||||
@ApiModelProperty(value = "工程类型名称")
|
@ApiModelProperty(value = "工程类型名称")
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
/**
|
||||||
|
* 费用指标
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "费用指标")
|
||||||
|
private BigDecimal costIndicators;
|
||||||
|
|
||||||
/** 导出选中列表 */
|
/** 导出选中列表 */
|
||||||
private List<Long> dataCondition;
|
private List<Long> dataCondition;
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,14 @@ import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新购验收任务详细
|
* 新购验收任务详细
|
||||||
*
|
*
|
||||||
* @author bonus
|
* @author bonus
|
||||||
* @date 2023-12-10
|
* @date 2023-12-10
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@Api(value = "新购验收任务详细")
|
@Api(value = "新购验收任务详细")
|
||||||
@RequestMapping("/purchaseCheckDetails")
|
@RequestMapping("/purchaseCheckDetails")
|
||||||
public class PurchaseCheckDetailsController extends BaseController
|
public class PurchaseCheckDetailsController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IPurchaseCheckDetailsService purchaseCheckDetailsService;
|
private IPurchaseCheckDetailsService purchaseCheckDetailsService;
|
||||||
|
|
||||||
|
|
@ -44,8 +43,7 @@ public class PurchaseCheckDetailsController extends BaseController
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "查询新购验收任务详细列表")
|
@ApiOperation(value = "查询新购验收任务详细列表")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(PurchaseCheckDetails purchaseCheckDetails)
|
public TableDataInfo list(PurchaseCheckDetails purchaseCheckDetails) {
|
||||||
{
|
|
||||||
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
|
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
@ -56,8 +54,7 @@ public class PurchaseCheckDetailsController extends BaseController
|
||||||
@RequiresPermissions("domain:details:export")
|
@RequiresPermissions("domain:details:export")
|
||||||
@Log(title = "新购验收任务详细", businessType = BusinessType.EXPORT)
|
@Log(title = "新购验收任务详细", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, PurchaseCheckDetails purchaseCheckDetails)
|
public void export(HttpServletResponse response, PurchaseCheckDetails purchaseCheckDetails) {
|
||||||
{
|
|
||||||
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
|
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
|
||||||
ExcelUtil<PurchaseCheckDetails> util = new ExcelUtil<PurchaseCheckDetails>(PurchaseCheckDetails.class);
|
ExcelUtil<PurchaseCheckDetails> util = new ExcelUtil<PurchaseCheckDetails>(PurchaseCheckDetails.class);
|
||||||
util.exportExcel(response, list, "新购验收任务详细数据");
|
util.exportExcel(response, list, "新购验收任务详细数据");
|
||||||
|
|
@ -68,8 +65,7 @@ public class PurchaseCheckDetailsController extends BaseController
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "获取新购验收任务详细详细信息")
|
@ApiOperation(value = "获取新购验收任务详细详细信息")
|
||||||
@GetMapping(value = "/{taskId}")
|
@GetMapping(value = "/{taskId}")
|
||||||
public AjaxResult getInfo(@PathVariable("taskId") Long taskId)
|
public AjaxResult getInfo(@PathVariable("taskId") Long taskId) {
|
||||||
{
|
|
||||||
return success(purchaseCheckDetailsService.selectPurchaseCheckDetailsByTaskId(taskId));
|
return success(purchaseCheckDetailsService.selectPurchaseCheckDetailsByTaskId(taskId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,8 +75,7 @@ public class PurchaseCheckDetailsController extends BaseController
|
||||||
@ApiOperation(value = "新增新购验收任务详细")
|
@ApiOperation(value = "新增新购验收任务详细")
|
||||||
@Log(title = "新购验收任务详细", businessType = BusinessType.INSERT)
|
@Log(title = "新购验收任务详细", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody List<PurchaseCheckDetails> purchaseCheckDetailsList)
|
public AjaxResult add(@RequestBody List<PurchaseCheckDetails> purchaseCheckDetailsList) {
|
||||||
{
|
|
||||||
return toAjax(purchaseCheckDetailsService.insertPurchaseCheckDetails(purchaseCheckDetailsList));
|
return toAjax(purchaseCheckDetailsService.insertPurchaseCheckDetails(purchaseCheckDetailsList));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -91,19 +86,23 @@ public class PurchaseCheckDetailsController extends BaseController
|
||||||
@ApiOperation(value = "验收审核")
|
@ApiOperation(value = "验收审核")
|
||||||
@Log(title = "验收审核", businessType = BusinessType.UPDATE)
|
@Log(title = "验收审核", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody List<PurchaseCheckDetails> purchaseCheckDetailsList)
|
public AjaxResult edit(@RequestBody List<PurchaseCheckDetails> purchaseCheckDetailsList) {
|
||||||
{
|
|
||||||
return toAjax(purchaseCheckDetailsService.updatePurchaseCheckDetails(purchaseCheckDetailsList));
|
return toAjax(purchaseCheckDetailsService.updatePurchaseCheckDetails(purchaseCheckDetailsList));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "验收图片上传")
|
||||||
|
@PostMapping("/uploadPic")
|
||||||
|
public AjaxResult uploadPic(@RequestBody PurchaseCheckDetails purchaseCheckDetails) {
|
||||||
|
return toAjax(purchaseCheckDetailsService.uploadPic(purchaseCheckDetails));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除新购验收任务详细
|
* 删除新购验收任务详细
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "删除新购验收任务详细")
|
@ApiOperation(value = "删除新购验收任务详细")
|
||||||
@Log(title = "删除新购验收任务详细", businessType = BusinessType.DELETE)
|
@Log(title = "删除新购验收任务详细", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{id}")
|
@DeleteMapping("/{id}")
|
||||||
public AjaxResult remove(@PathVariable Long id)
|
public AjaxResult remove(@PathVariable Long id) {
|
||||||
{
|
|
||||||
return toAjax(purchaseCheckDetailsService.deletePurchaseCheckDetailsByTaskId(id));
|
return toAjax(purchaseCheckDetailsService.deletePurchaseCheckDetailsByTaskId(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,4 +151,6 @@ public interface PurchaseCheckDetailsMapper {
|
||||||
int updateStatusByTaskIdTypeId(PurchaseCheckDetails purchaseCheckDetails);
|
int updateStatusByTaskIdTypeId(PurchaseCheckDetails purchaseCheckDetails);
|
||||||
|
|
||||||
int updateByTaskId(@Param("taskId") Long taskId,@Param("typeId") Long typeId);
|
int updateByTaskId(@Param("taskId") Long taskId,@Param("typeId") Long typeId);
|
||||||
|
|
||||||
|
int uploadPic(PurchaseCheckDetails purchaseCheckDetails);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,4 +59,6 @@ public interface IPurchaseCheckDetailsService
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deletePurchaseCheckDetailsByTaskId(Long id);
|
public int deletePurchaseCheckDetailsByTaskId(Long id);
|
||||||
|
|
||||||
|
int uploadPic(PurchaseCheckDetails purchaseCheckDetails);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -131,4 +131,9 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
|
||||||
public int deletePurchaseCheckDetailsByTaskId(Long id) {
|
public int deletePurchaseCheckDetailsByTaskId(Long id) {
|
||||||
return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByTaskId(id);
|
return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByTaskId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int uploadPic(PurchaseCheckDetails purchaseCheckDetails) {
|
||||||
|
return purchaseCheckDetailsMapper.uploadPic(purchaseCheckDetails);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="companyId" column="company_id" />
|
<result property="companyId" column="company_id" />
|
||||||
<result property="deptName" column="dept_name" />
|
<result property="deptName" column="dept_name" />
|
||||||
<result property="typeName" column="name" />
|
<result property="typeName" column="name" />
|
||||||
|
<result property="costIndicators" column="cost_indicators" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="bmProjectInfo">
|
<sql id="bmProjectInfo">
|
||||||
|
|
@ -37,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="getProjectLotAll" parameterType="com.bonus.sgzb.base.domain.BmProjectLot" resultMap="BmProjectLotResult">
|
<select id="getProjectLotAll" parameterType="com.bonus.sgzb.base.domain.BmProjectLot" resultMap="BmProjectLotResult">
|
||||||
<!--<include refid="bmProjectInfo"/>-->
|
<!--<include refid="bmProjectInfo"/>-->
|
||||||
select a.lot_id, a.pro_id, a.lot_name, a.status, a.type_id, a.link_man, a.telphone, a.own_pro, a.dept_id, a.is_share,
|
select a.lot_id, a.pro_id, a.lot_name, a.status, a.type_id, a.link_man, a.telphone, a.own_pro, a.dept_id, a.is_share,
|
||||||
a.lon, a.lat, a.del_flag, a.create_by, a.create_time,a.remark,a.company_id ,b.dept_name, c.name
|
a.lon, a.lat, a.del_flag, a.create_by, a.create_time,a.remark,a.company_id ,b.dept_name, c.name,a.cost_indicators
|
||||||
from bm_project_lot a
|
from bm_project_lot a
|
||||||
left join sys_dept b on a.dept_id = b.dept_id
|
left join sys_dept b on a.dept_id = b.dept_id
|
||||||
left join sys_dic c on a.type_id = c.id
|
left join sys_dic c on a.type_id = c.id
|
||||||
|
|
@ -115,6 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="updateTime != null and updateTime != ''">update_time,</if>
|
<if test="updateTime != null and updateTime != ''">update_time,</if>
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
<if test="companyId != null and companyId != ''">company_id,</if>
|
<if test="companyId != null and companyId != ''">company_id,</if>
|
||||||
|
<if test="costIndicators != null and costIndicators != ''">cost_indicators,</if>
|
||||||
create_time
|
create_time
|
||||||
)values(
|
)values(
|
||||||
<if test="lotName != null and lotName != ''">#{lotName},</if>
|
<if test="lotName != null and lotName != ''">#{lotName},</if>
|
||||||
|
|
@ -130,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
<if test="remark != null and remark != ''">#{remark},</if>
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
<if test="companyId != null and companyId != ''">#{companyId},</if>
|
<if test="companyId != null and companyId != ''">#{companyId},</if>
|
||||||
|
<if test="costIndicators != null and costIndicators != ''">#{costIndicators},</if>
|
||||||
sysdate()
|
sysdate()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
@ -221,6 +224,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if>
|
<if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if>
|
||||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||||
|
<if test="costIndicators != null and costIndicators != ''">cost_indicators = #{costIndicators},</if>
|
||||||
update_time = sysdate()
|
update_time = sysdate()
|
||||||
</set>
|
</set>
|
||||||
where lot_id = #{lotId}
|
where lot_id = #{lotId}
|
||||||
|
|
|
||||||
|
|
@ -267,4 +267,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<update id="updateByTaskId">
|
<update id="updateByTaskId">
|
||||||
update purchase_check_details set bind_num = bind_num - 1 , status='7' where task_id = #{taskId} and type_id = #{typeId}
|
update purchase_check_details set bind_num = bind_num - 1 , status='7' where task_id = #{taskId} and type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
|
<update id="uploadPic">
|
||||||
|
update purchase_check_details
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="checkUrlName != null">check_url_name = #{checkUrlName},</if>
|
||||||
|
<if test="checkUrl != null">check_url = #{checkUrl},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue